Example #1
0
 /**
  * Class Constructor
  *
  * @access public
  * @return null
  */
 public function __construct($name = false, $value = false, array $rules = array())
 {
     if ($name && $value && count($rules)) {
         $this->setName($name)->setValue($value)->setRules($rules);
     }
     $this->_system_error = System_Error_Base::getInstance();
 }
Example #2
0
 /**
  * resets the state of the class to blank
  *
  * @access public
  * @static
  * @return Object, instance of this class
  */
 public function reset()
 {
     self::$_error_stack = array();
     return $this;
 }
Example #3
0
 /**
  * gets an instance of the system error class, if it isnt defined, sets the _system_error property
  *
  * @access public
  * @return object, instance of this system error class
  */
 public function getSystemError()
 {
     if (!$this->_system_error) {
         $this->_system_error = System_Error_Base::getInstance();
     }
     return $this->_system_error;
 }
Example #4
0
 /**
  * Class Constructor
  *
  * @access public
  * @return System_Request_Controller
  */
 public function __construct(array $data = array())
 {
     $this->setData($data);
     $this->_registry = System_Registry_Root::getInstance();
     $this->_error_object = System_Error_Base::getInstance();
     $this->_event_object = System_Request_Event::getInstance();
     return $this;
 }