コード例 #1
0
ファイル: Event.php プロジェクト: pmatsis/JoshuaTree
 /**
  * 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;
 }
コード例 #2
0
ファイル: Abstract.php プロジェクト: pmatsis/JoshuaTree
 /**
  * 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;
 }
コード例 #3
0
ファイル: Controller.php プロジェクト: pmatsis/JoshuaTree
 /**
  * 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;
 }