Пример #1
0
 /**
  *  バックエンド処理を実行する
  *
  *  @access public
  *  @param  string  $action_name    実行するアクションの名称
  *  @return mixed   (string):Forward名(nullならforwardしない) Ethna_Error:エラー
  */
 public function perform($action_name)
 {
     $forward_name = null;
     $action_class_name = $this->controller->getActionClassName($action_name);
     $this->action_class = new $action_class_name($this);
     $this->ac = $this->action_class;
     // アクションの実行
     $forward_name = $this->ac->authenticate();
     if ($forward_name === false) {
         return null;
     } else {
         if ($forward_name !== null) {
             return $forward_name;
         }
     }
     $forward_name = $this->ac->prepare();
     if ($forward_name === false) {
         return null;
     } else {
         if ($forward_name !== null) {
             return $forward_name;
         }
     }
     $forward_name = $this->ac->perform();
     return $forward_name;
 }
Пример #2
0
 /**
  *	authenticate before executing action.
  *
  *	@access public
  *	@return string  Forward name.
  *				  (null if no errors. false if we have something wrong.)
  */
 function authenticate()
 {
     $this->backend->log(LOG_DEBUG, '▲%s', session_id());
     if (!$this->session->isStart()) {
         ///	セッション開始
         if (!$this->session->start()) {
             $this->backend->log(LOG_WARNING, '例外スタートセッション');
         }
     }
     $this->backend->log(LOG_DEBUG, '▼%s', session_id());
     return parent::authenticate();
 }
 /**
  *  authenticate before executing action.
  *
  *  @access public
  *  @return string  Forward name.
  *				  (null if no errors. false if we have something wrong.)
  */
 function authenticate()
 {
     return parent::authenticate();
 }
Пример #4
0
 /**
  *  authenticate before executing action.
  *
  *  @access public
  *  @return string  Forward name.
  *                  (null if no errors. false if we have something wrong.)
  */
 function authenticate()
 {
     $this->backend->ctl->getI18N()->use_gettext = false;
     return parent::authenticate();
 }