예제 #1
0
파일: Model.php 프로젝트: hasanozgan/joy
 /**
  * getInstance
  * 
  * @return void
  */
 public static function getInstance()
 {
     if (!is_object(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
예제 #2
0
 public function onStart()
 {
     $model = Joy_Context_Model::getInstance();
     $model->setBootstrap(FFEdit_Bootstrap_Model);
     //      $router = Joy_Router::getInstance();
     //      $router->resetItems();
     //      $router->addItem(new Joy_Router_Item("/hello", "FFEdit_Subscription", "list"));
     //        $view = Joy_View::getInstance();
     //        $view->setBootstrap(FFEdit_Bootrap_View);
 }
예제 #3
0
파일: Context.php 프로젝트: hasanozgan/joy
 /**
  * _init
  * @return void
  */
 protected function _init()
 {
     $this->culture = Joy_Context_Culture::getInstance();
     $this->session = Joy_Context_Session::getInstance();
     $this->request = Joy_Context_Request::getInstance();
     $this->response = Joy_Context_Response::getInstance();
     $this->user = Joy_Context_User::getInstance();
     $this->cookie = Joy_Context_Cookie::getInstance();
     $this->server = Joy_Context_Server::getInstance();
     $this->models = Joy_Context_Model::getInstance();
 }