Class Ethna_Backend

Description

バックエンド処理クラス

Located in /class/Backend.php (line 20)


	
			
Variable Summary
 mixed $ac
 mixed $action_form
 mixed $ae
 mixed $af
 mixed $config
 mixed $controller
 mixed $ctl
 mixed $db_list
 mixed $i18n
 mixed $logger
 mixed $plugin
 mixed $session
Method Summary
 Ethna_Backend __construct (object Ethna_Controller $controller)
 mixed getActionClass ()
 string getAppId ()
 string getBasedir ()
 mixed getDB ([string $db_key = ""])
 mixed getDBList ()
 string getEtcdir ()
 object Ethna_AppManager getManager ( $type, [ $weak = false])
 mixed getObject ( $key)
 string getTemplatedir ()
 string getTemplateext ()
 string getTmpdir ()
 void log (int $level, string $message)
 mixed perform (string $action_name)
 void setActionClass ( $action_class)
 void setActionForm ( $action_form)
 void shutdownDB ()
 mixed _getDBVarname ([string $db_key = ""])
Variables
mixed $ac (line 57)
  • access: protected
mixed $action_class (line 54)
  • access: protected
mixed $action_error (line 42)
  • access: protected
mixed $action_form (line 48)
  • access: protected
mixed $ae (line 45)
  • access: protected
mixed $af (line 51)
  • access: protected
mixed $class_factory (line 33)
  • access: protected
mixed $config (line 36)
  • access: protected
mixed $controller (line 27)
  • access: protected
mixed $ctl (line 30)
  • access: protected
mixed $db_list (line 66)
  • access: protected
mixed $i18n (line 39)
  • access: protected
mixed $logger (line 69)
  • access: protected
mixed $plugin (line 63)
  • access: protected
mixed $session (line 60)
  • access: protected
Methods
Constructor __construct (line 80)

Ethna_Backendクラスのコンストラクタ

  • access: public
Ethna_Backend __construct (object Ethna_Controller $controller)
getActionClass (line 187)

実行中のアクションクラスオブジェクトのアクセサ(R)

  • return: Ethna_ActionClass:アクションクラス null:アクションクラス未定
  • access: public
mixed getActionClass ()
getActionError (line 154)

アクションエラーオブジェクトのアクセサ(R)

  • return: アクションエラーオブジェクト
  • access: public
object Ethna_ActionError getActionError ()
getActionForm (line 165)

アクションフォームオブジェクトのアクセサ(R)

  • return: アクションフォームオブジェクト
  • access: public
object Ethna_ActionForm getActionForm ()
getAppId (line 132)

アプリケーションIDを返す

  • return: アプリケーションID
  • access: public
string getAppId ()
getBasedir (line 268)

アプリケーションのベースディレクトリを取得する

  • return: ベースディレクトリのパス名
  • access: public
string getBasedir ()
getConfig (line 121)

設定オブジェクトへのアクセサ(R)

  • return: 設定オブジェクト
  • access: public
object Ethna_Config getConfig ()
getController (line 110)

controllerオブジェクトへのアクセサ(R)

  • return: controllerオブジェクト
  • access: public
object Ethna_Controller getController ()
getDB (line 377)

DBオブジェクトを返す

  • return: Ethna_DB:DBオブジェクト null:DSN設定なし Ethna_Error:エラー
  • todo: この中でnewしないでclass factoryを利用する
  • access: public
mixed getDB ([string $db_key = ""])
  • string $db_key: DBキー
getDBList (line 428)

DBオブジェクト(全て)を取得する

  • return: array:Ethna_DBオブジェクトの一覧 Ethan_Error:(いずれか一つ以上の接続で)エラー
  • access: public
mixed getDBList ()
getEtcdir (line 290)

アプリケーションの設定ディレクトリを取得する

  • return: 設定ディレクトリのパス名
  • access: public
string getEtcdir ()
getI18N (line 143)

I18Nオブジェクトのアクセサ(R)

  • return: i18nオブジェクト
  • access: public
object Ethna_I18N getI18N ()
getLogger (line 209)

ログオブジェクトのアクセサ(R)

  • return: ログオブジェクト
  • access: public
object Ethna_Logger getLogger ()
getManager (line 242)

マネージャオブジェクトへのアクセサ(R)

  • return: マネージャオブジェクト
  • access: public
object Ethna_AppManager getManager ( $type, [ $weak = false])
  • $type
  • $weak
getObject (line 254)

オブジェクトへのアクセサ(R)

  • return: null)
  • access: public
mixed getObject ( $key)
  • $key
getPlugin (line 231)

プラグインオブジェクトのアクセサ(R)

  • return: プラグインオブジェクト
  • access: public
object Ethna_Plugin getPlugin ()
getSession (line 220)

セッションオブジェクトのアクセサ(R)

  • return: セッションオブジェクト
  • access: public
object Ethna_Session getSession ()
getTemplatedir (line 279)

アプリケーションのテンプレートディレクトリを取得する

  • return: テンプレートディレクトリのパス名
  • access: public
string getTemplatedir ()
getTemplateext (line 312)

アプリケーションのテンプレートファイル拡張子を取得する

  • return: テンプレートファイルの拡張子
  • access: public
string getTemplateext ()
getTmpdir (line 301)

アプリケーションのテンポラリディレクトリを取得する

  • return: テンポラリディレクトリのパス名
  • access: public
string getTmpdir ()
log (line 324)

ログを出力する

  • access: public
void log (int $level, string $message)
  • int $level: ログレベル(LOG_DEBUG, LOG_NOTICE...)
  • string $message: ログメッセージ(printf形式)
perform (line 341)

バックエンド処理を実行する

  • return: (string):Forward名(nullならforwardしない) Ethna_Error:エラー
  • access: public
mixed perform (string $action_name)
  • string $action_name: 実行するアクションの名称
setActionClass (line 197)

実行中のアクションクラスオブジェクトのアクセサ(W)

  • access: public
void setActionClass ( $action_class)
  • $action_class
setActionForm (line 175)

アクションフォームオブジェクトのアクセサ(W)

  • access: public
void setActionForm ( $action_form)
  • $action_form
shutdownDB (line 455)

DBコネクションを切断する

  • access: public
void shutdownDB ()
_getDBVarname (line 476)

指定されたDBキーに対応する(当該DBオブジェクトを格納するための)メンバ変数名を取得する

正直もう要らないのですが、後方互換性維持のために一応残してある状態です (Ethna_AppManagerクラスなどで、$this->dbとかしている箇所が少なからずあ るので)

  • return: string:メンバ変数名 Ethna_Error:不正なDB種別
  • access: protected
mixed _getDBVarname ([string $db_key = ""])
  • string $db_key: DBキー

Documentation generated on Fri, 11 Nov 2011 03:57:42 +0900 by phpDocumentor 1.4.3