Documentación GVHIDRA 3.1.5
Referencia de la Clase ActionMapping
Diagrama de herencias de ActionMapping
HashMap Object

Métodos públicos

 ActionMapping ($name, $mapping)
 _initActionForwards ($forwards)
 getType ()
 setType ($type)
 getName ()
 setName ($name)
 getInput ()
 setInput ($input)
 get ($key)

Campos de datos

 $_type
 $_name
 $_input

Descripción detallada

The ActionMapping class represents the information that the ActionController knows about the ActionMapping of a particular request to an instance of a particular Action class. The ActionMapping is passed to the perform() method of the Action class itself, enabling access to this information directly.

An ActionMapping has the following minimal set of properties. Additional properties can be provided as needed by subclasses.

  • type - Class name of the Action class used by this ActionMapping.
  • name - Name of the ActionForm class, if any, associated with this Action.
  • input - Path of the input form to which control should be returned if a validation error is encountered.
  • validate - Set to 1 if the validate() method of the ActionForm class (if any) associated with this ActionMapping should be called. [0]
Autor:
Arnold Cano
Versión:
Id:
ActionMapping.php,v 1.3 2007-06-20 11:01:26 afelixf Exp

Definición en la línea 24 del archivo ActionMapping.php.


Documentación de las funciones miembro

_initActionForwards ( forwards)

Initialize the ActionForwards array associated with this ActionMapping.

private

Parámetros:
array$forwards

Definición en la línea 62 del archivo ActionMapping.php.

        {
                foreach ($forwards as $name => $forward) {
                        $actionForward = new ActionForward($name, $forward);
                        $this->put($name, $actionForward);
                }
        }
ActionMapping ( name,
mapping 
)

Create a ActionMapping with the specified values.

public

Parámetros:
string$name
array$mapping

Definición en la línea 46 del archivo ActionMapping.php.

        {
                $this->setType($mapping[_TYPE]);
                $this->setName($name);
                $this->setInput($mapping[_INPUT]);
                if (is_array($mapping[_ACTION_FORWARDS])) {
                        $this->_initActionForwards($mapping[_ACTION_FORWARDS]);
                }
        }
get ( key)

Returns the value to which the specified key is mapped in this identity hash map, or null if the map contains no mapping for this key.

public

Parámetros:
mixed$key
Devuelve:
mixed

Reimplementado de HashMap.

Definición en la línea 131 del archivo ActionMapping.php.

        {
                if ($this->containsKey($key)) { return $this->_values[$key]; }
                else
                        die('Error: actionForward '.$key.' no existe. Consulte el fichero de mapeos.');
        }
getInput ( )

Get the input URI of the ActionForward.

public

Devuelve:
string

Definición en la línea 115 del archivo ActionMapping.php.

        {
                return $this->_input;
        }
getName ( )

Get the name of the ActionForward.

public

Devuelve:
string

Definición en la línea 95 del archivo ActionMapping.php.

        {
                return $this->_name;
        }
getType ( )

Get the type of the ActionForward.

public

Devuelve:
string

Definición en la línea 75 del archivo ActionMapping.php.

        {
                return $this->_type;
        }
setInput ( input)

Set the input URI of the ActionForward.

public

Parámetros:
string$input

Definición en la línea 125 del archivo ActionMapping.php.

        {
                $this->_input = $input;
        }
setName ( name)

Set the name of the ActionForward.

public

Parámetros:
string$name

Definición en la línea 105 del archivo ActionMapping.php.

        {
                $this->_name = $name;
        }
setType ( type)

Set the type of the ActionForward.

public

Parámetros:
string$type

Definición en la línea 85 del archivo ActionMapping.php.

        {
                $this->_type = $type;
        }

Documentación de los campos

$_input

Definición en la línea 37 del archivo ActionMapping.php.

$_name

Definición en la línea 33 del archivo ActionMapping.php.

$_type

Definición en la línea 29 del archivo ActionMapping.php.


La documentación para esta clase fue generada a partir del siguiente fichero: