![]() |
Documentación GVHIDRA 3.1.5
|
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 |
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.
Definición en la línea 24 del archivo ActionMapping.php.
_initActionForwards | ( | $ | forwards | ) |
Initialize the ActionForwards array associated with this ActionMapping.
private
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
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
mixed | $key |
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
Definición en la línea 115 del archivo ActionMapping.php.
{
return $this->_input;
}
getName | ( | ) |
Get the name of the ActionForward.
public
Definición en la línea 95 del archivo ActionMapping.php.
{
return $this->_name;
}
getType | ( | ) |
Get the type of the ActionForward.
public
Definición en la línea 75 del archivo ActionMapping.php.
{
return $this->_type;
}
setInput | ( | $ | input | ) |
Set the input URI of the ActionForward.
public
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
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
string | $type |
Definición en la línea 85 del archivo ActionMapping.php.
{ $this->_type = $type; }
$_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.