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

Métodos públicos

 ActionForward ($name, $forward=null)
 getName ()
 setName ($name)
 getPath ()
 setPath ($path)
 getRedirect ()
 setRedirect ($redirect)
 put ($clave, $valor)
 get ($clave)

Campos de datos

 $_name
 $_path
 $_redirect = 0
 $_saco = null

Descripción detallada

The ActionForward class represents a destination to which the ActionController might be directed to forward or redirect to, as a result of the processing activities of an Action class. Instances of this class may be created dynamically as necessary, or configured in association with an ActionMapping instance for named lookup of potentially multiple destinations for a particular ActionMapping instance.

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

  • name - Logical name by which this instance may be looked up in relationship to a particular ActionMapping.
  • path - The absolute or relative URI to which control should be forwarded or redirected.
  • redirect - Set to 1 if the ActionController should kill the session and redirect on the URI. [0]
Autor:
Arnold Cano
Versión:
Id:
ActionForward.php,v 1.3 2007-06-01 11:27:42 afelixf Exp

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


Documentación de las funciones miembro

ActionForward ( name,
forward = null 
)

Create an ActionForward with the specified values.

public

Parámetros:
string$name
array$forward

Definición en la línea 51 del archivo ActionForward.php.

        {
                $this->setName($name);
                if ($forward==null)
                {
                        $forward[_PATH]='';
                        $forward[_REDIRECT]=0;
                }
                $this->setPath($forward[_PATH]);
                $this->setRedirect($forward[_REDIRECT]);
                $this->_saco = array();
        }
get ( clave)

Obtiene un valor en la coleccion

public

Parámetros:
string$claveClave de la coleccion

Definición en la línea 142 del archivo ActionForward.php.

        {
                return($this->_saco[$clave]);
        }
getName ( )

Get the name of the ActionForward.

public

Devuelve:
string

Definición en la línea 69 del archivo ActionForward.php.

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

Get the path of the ActionForward.

public

Devuelve:
string

Definición en la línea 89 del archivo ActionForward.php.

        {
                return $this->_path;
        }
getRedirect ( )

Get the redirect flag of the ActionForward.

public

Devuelve:
integer

Definición en la línea 109 del archivo ActionForward.php.

        {
                return $this->_redirect;
        }
put ( clave,
valor 
)

Fija un valor en la coleccion

public

Parámetros:
string$claveClave del objeto en la coleccin
string$valorValor del objeto de la coleccin

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

        {
                $this->_saco[$clave] = $valor;
        }
setName ( name)

Set the name of the ActionForward.

public

Parámetros:
string$name

Definición en la línea 79 del archivo ActionForward.php.

        {
                $this->_name = $name;
        }
setPath ( path)

Set the path of the ActionForward.

public

Parámetros:
string$path

Definición en la línea 99 del archivo ActionForward.php.

        {
                $this->_path = $path;
        }
setRedirect ( redirect)

Set the redirect flag of the ActionForward.

public

Parámetros:
integer$redirect

Definición en la línea 119 del archivo ActionForward.php.

        {
                $this->_redirect = $redirect;
        }

Documentación de los campos

$_name

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

$_path

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

$_redirect = 0

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

$_saco = null

Definición en la línea 42 del archivo ActionForward.php.


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