Source for file Ethna_ActionClass.php

Documentation is available at Ethna_ActionClass.php

  1. <?php
  2. // vim: foldmethod=marker
  3. /**
  4.  *  Ethna_ActionClass.php
  5.  *
  6.  *  @author     Masaki Fujimoto <fujimoto@php.net>
  7.  *  @license    http://www.opensource.org/licenses/bsd-license.php The BSD License
  8.  *  @package    Ethna
  9.  *  @version    $Id: Ethna_ActionClass.php 309 2006-07-27 01:56:31Z ichii386 $
  10.  */
  11.  
  12. // {{{ Ethna_ActionClass
  13. /**
  14.  *  action実行クラス
  15.  *
  16.  *  @author     Masaki Fujimoto <fujimoto@php.net>
  17.  *  @access     public
  18.  *  @package    Ethna
  19.  */
  20. {
  21.     /**#@+
  22.      *  @access private
  23.      */
  24.  
  25.     /** @var    object  Ethna_Backend       backendオブジェクト */
  26.     var $backend;
  27.  
  28.     /** @var    object  Ethna_Config        設定オブジェクト    */
  29.     var $config;
  30.  
  31.     /** @var    object  Ethna_I18N          i18nオブジェクト */
  32.     var $i18n;
  33.  
  34.     /** @var    object  Ethna_ActionError   アクションエラーオブジェクト */
  35.     var $action_error;
  36.  
  37.     /** @var    object  Ethna_ActionError   アクションエラーオブジェクト(省略形) */
  38.     var $ae;
  39.  
  40.     /** @var    object  Ethna_ActionForm    アクションフォームオブジェクト */
  41.     var $action_form;
  42.  
  43.     /** @var    object  Ethna_ActionForm    アクションフォームオブジェクト(省略形) */
  44.     var $af;
  45.  
  46.     /** @var    object  Ethna_Session       セッションオブジェクト */
  47.     var $session;
  48.  
  49.     /** @var    object  Ethna_Plugin        プラグインオブジェクト */
  50.     var $plugin;
  51.  
  52.     /**#@-*/
  53.  
  54.     /**
  55.      *  Ethna_ActionClassのコンストラクタ
  56.      *
  57.      *  @access public
  58.      *  @param  object  Ethna_Backend   $backend    backendオブジェクト
  59.      */
  60.     function Ethna_ActionClass(&$backend)
  61.     {
  62.         $c =$backend->getController();
  63.         $this->backend =$backend;
  64.         $this->config =$this->backend->getConfig();
  65.         $this->i18n =$this->backend->getI18N();
  66.  
  67.         $this->action_error =$this->backend->getActionError();
  68.         $this->ae =$this->action_error;
  69.  
  70.         $this->action_form =$this->backend->getActionForm();
  71.         $this->af =$this->action_form;
  72.  
  73.         $this->session =$this->backend->getSession();
  74.         $this->plugin =$this->backend->getPlugin();
  75.     }
  76.  
  77.     /**
  78.      *  アクション実行前の認証処理を行う
  79.      *
  80.      *  @access public
  81.      *  @return string  遷移名(nullなら正常終了, falseなら処理終了)
  82.      */
  83.     function authenticate()
  84.     {
  85.         return null;
  86.     }
  87.  
  88.     /**
  89.      *  アクション実行前の処理(フォーム値チェック等)を行う
  90.      *
  91.      *  @access public
  92.      *  @return string  遷移名(nullなら正常終了, falseなら処理終了)
  93.      */
  94.     function prepare()
  95.     {
  96.         return null;
  97.     }
  98.  
  99.     /**
  100.      *  アクション実行
  101.      *
  102.      *  @access public
  103.      *  @return string  遷移名(nullなら遷移は行わない)
  104.      */
  105.     function perform()
  106.     {
  107.         return null;
  108.     }
  109. }
  110. // }}}
  111. ?>

Documentation generated on Thu, 08 May 2008 00:14:17 +0900 by phpDocumentor 1.4.2