Exemplo n.º 1
0
 /**
  * Check if project is loaded
  */
 protected function _checkLoaded()
 {
     if (!$this->_session->keyExists('loaded') || !$this->_session->get('loaded')) {
         Response::jsonError($this->_lang->MSG_PROJECT_NOT_LOADED);
     }
 }
Exemplo n.º 2
0
 /**
  * Check if user auth session exists 
  */
 protected function _checkAuthSession()
 {
     if ($this->_session->keyExists('auth') && $this->_session->get('auth') && $this->_session->keyExists('auth_id') && $this->_session->get('auth_id')) {
         $this->setId($this->_session->get('auth_id'));
     }
 }