Example #1
0
 /**
  * method used to return the current event object
  * will instantiate the event object if it doesn't already exist
  * 
  * @access public
  * @static
  * @return System_Event_Controller
  */
 public static function getEventObj()
 {
     if (!self::$_event_obj) {
         self::$_event_obj = new System_Event_Controller();
     }
     return self::$_event_obj;
 }
Example #2
0
 /**
  * sets the request event object if it isn't set and also sets the event_obj property
  * this method should be called in all of the system events to ensure that the event object exists
  * 
  * @access private
  * @return System_Request_Command_Abstract
  */
 private function getRequestEvent()
 {
     if (!$this->_request_event_obj) {
         $this->_request_event_obj = System_Request_Command_Event::getInstance();
         $this->_event_obj = $this->_request_event_obj->getEventObj();
     }
     return $this;
 }
Example #3
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;
 }