* @copyright 2007 by http://wombat.exit0.net * @package wombatSite * @subpackage controller */ /** * Request * * @version 0.1.0 * @package wombatSite * @subpackage controller */ class wbRequest { /** * request properties * @var array */ protected $_properties = array(); /** * constructor */ public function __construct() { $this->_properties =& $_REQUEST; } /** * export properties * * @return array $properties */ public function Export() { return $this->_properties; } /** * Magic getter * * @param string $name property name * @return mixed the property */ public function __get( $name ) { if( !isset( $this->_properties[$name] ) ) { return null; } return $this->_properties[$name]; } /** * Magic setter * * @param string $name property name * @param mixed the property * @return bool true on success */ public function __set( $name, $value ) { $this->_properties[$name] = $value; return true; } } ?>