phpDocumentor ZNF
Action
[ class tree: ZNF ] [ index: ZNF ] [ all elements ]

Source for file ActionForward.php

Documentation is available at ActionForward.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  3. /**
  4.  * PHP version 5
  5.  *
  6.  * This source file is subject to version 2.1 of the GNU Lesser General Public
  7.  * License, that is bundled with this package in the file COPYING, available
  8.  * through the world wide web at the following URI:
  9.  * http://www.gnu.org/copyleft/lesser.html.
  10.  *
  11.  * @package    ZNF
  12.  * @subpackage Action
  13.  * @author     Alessandro Rossini <http://www.alessandrorossini.org>
  14.  * @author     Graziano Liberati <http://www.liberati.org>
  15.  * @copyright  2004-2007 The ZNF Development Team
  16.  * @license    LGPL License 2.1 <http://www.gnu.org/copyleft/lesser.html>
  17.  * @version    SVN $Id: ActionForward.php 43 2007-06-26 23:36:35Z aronnax $
  18.  * @since      Release 0.5.0
  19.  * @link       http://www.zeronotice.org
  20.  */
  21.  
  22. /**
  23.  * <i>ZNF_Action_ActionForward</i> represents the destination to which the controller <i>ZNF_Action_RequestProcessor</i> might be directed.
  24.  *
  25.  * The redirect is a result of processing activities of a
  26.  * <i>ZNF_Action_Action</i> class.
  27.  *
  28.  * @access     public
  29.  * @package    ZNF
  30.  * @subpackage Action
  31.  * @author     Alessandro Rossini <http://www.alessandrorossini.org>
  32.  * @author     Graziano Liberati <http://www.liberati.org>
  33.  * @copyright  2004-2007 The ZNF Development Team
  34.  * @license    LGPL License 2.1 <http://www.gnu.org/copyleft/lesser.html>
  35.  * @version    SVN $Id: ActionForward.php 43 2007-06-26 23:36:35Z aronnax $
  36.  * @since      Release 0.5.0
  37.  * @link       http://www.zeronotice.org
  38.  */
  39. {
  40.  
  41.     /**
  42.      * The <i>name</i> attribute of the <i>forward</i> element.
  43.      *
  44.      * @access protected
  45.      * @var string $_name 
  46.      */
  47.     protected $_name = null;
  48.  
  49.     /**
  50.      * The <i>path</i> attribute of the <i>forward</i> element.
  51.      *
  52.      * @access protected
  53.      * @var string $_path 
  54.      */
  55.     protected $_path = null;
  56.  
  57.     /**
  58.      * The <i>redirect</i> attribute of the <i>forward</i> element.
  59.      *
  60.      * @access protected
  61.      * @var boolean $_redirect 
  62.      */
  63.     protected $_redirect = false;
  64.  
  65.     /**
  66.      * Construct a new <i>ZNF_Action_ActionForward</i> object.
  67.      *
  68.      * @access public
  69.      * @param array $forward 
  70.      */
  71.     public function __construct($forward)
  72.     {
  73.         $this->setName($forward['name']);
  74.         $this->setPath($forward['path']);
  75.         $this->setRedirect($forward['redirect']);
  76.     }
  77.  
  78.     /**
  79.      * Returns the value of the <i>name</i> property.
  80.      *
  81.      * @access public
  82.      * @return string 
  83.      */
  84.     public function getName()
  85.     {
  86.         return $this->_name;
  87.     }
  88.  
  89.     /**
  90.      * Sets the value of the <i>name</i> property.
  91.      *
  92.      * @access public
  93.      * @param string $value 
  94.      */
  95.     public function setName($value)
  96.     {
  97.         $this->_name = $value;
  98.     }
  99.  
  100.     /**
  101.      * Returns the value of the <i>path</i> property.
  102.      *
  103.      * @access public
  104.      * @return string 
  105.      */
  106.     public function getPath()
  107.     {
  108.         return $this->_path;
  109.     }
  110.  
  111.     /**
  112.      * Sets the value of the <i>path</i> property.
  113.      *
  114.      * @access public
  115.      * @param string $value 
  116.      */
  117.     public function setPath($value)
  118.     {
  119.         $this->_path = $value;
  120.     }
  121.  
  122.     /**
  123.      * Returns the value of the <i>redirect</i> property.
  124.      *
  125.      * @access public
  126.      * @return boolean 
  127.      */
  128.     public function getRedirect()
  129.     {
  130.         return $this->_redirect;
  131.     }
  132.  
  133.     /**
  134.      * Sets the value of the <i>redirect</i> property.
  135.      *
  136.      * @access public
  137.      * @param boolean $value 
  138.      */
  139.     public function setRedirect($value)
  140.     {
  141.         $this->_redirect = $value;
  142.     }
  143.  
  144.     /**
  145.      * Destroys the <i>ZNF_Action_ActionForward</i> object.
  146.      *
  147.      * @access public
  148.      */
  149.     public function __destruct()
  150.     {
  151.     }
  152.  
  153. }
  154.  
  155. /**
  156.  * <i>ZNF_Action_ActionForwardException</i> is the exception type for the <i>ZNF_Action_ActionForward</i> class.
  157.  *
  158.  * <i>ZNF_Action_ActionForwardException</i> extends the <i>Exception</i> class of PHP5.
  159.  *
  160.  * @access     public
  161.  * @package    ZNF
  162.  * @subpackage Action
  163.  * @author     Alessandro Rossini <http://www.alessandrorossini.org>
  164.  * @author     Graziano Liberati <http://www.liberati.org>
  165.  * @copyright  2004-2007 The ZNF Development Team
  166.  * @license    LGPL License 2.1 <http://www.gnu.org/copyleft/lesser.html>
  167.  * @version    SVN $Id: ActionForward.php 43 2007-06-26 23:36:35Z aronnax $
  168.  * @since      Release 0.5.0
  169.  * @link       http://www.zeronotice.org
  170.  */
  171. class ZNF_Action_ActionForwardException extends Exception
  172. {
  173. }
  174.  
  175. ?>

Documentation generated on Wed, 14 Nov 2007 23:47:33 +0100 by phpDocumentor 1.4.0