Class Ethna_Plugin

Description

プラグインクラス

Located in /class/Plugin.php (line 22)


	
			
Variable Summary
 mixed $controller
 mixed $ctl
 mixed $logger
 mixed $_dirlist
Method Summary
 static void import (string $type, [string $name = null])
 static void includeEthnaPlugin (string $type, string $name)
 Ethna_Plugin __construct (object Ethna_Controller $controller)
 object プラグインのインスタンス getPlugin (string $type, string $name)
 array getPluginList (string $type)
 array getPluginNaming (string $type, [string $name = null], [string $appid = 'Ethna'])
 void includePlugin (string $type, [string $name = null])
 void searchAllPluginSrc (string $type)
 void setLogger (object Ethna_Logger $logger)
 void setPlugin (string $plugin_alias_name, array $plugin)
 void _searchPluginSrcDir (string $type, [string $name = null])
 void _unloadPlugin (string $type, string $name)
Variables
mixed $controller (line 29)
  • access: protected
mixed $ctl (line 32)
  • access: protected
mixed $logger (line 35)
  • access: protected
mixed $obj_registry = array() (line 38)
  • public: array プラグインのオブジェクト(インスタンス)を保存する配列
  • access: public
mixed $src_registry = array() (line 41)
  • access: protected
mixed $_dirlist = array() (line 44)
  • access: protected
Methods
static import (line 535)

プラグインのソースを include する

  • access: public
void import (string $type, [string $name = null])
  • string $type: プラグインの種類
  • string $name: プラグインの名前
static includeEthnaPlugin (line 500)

Ethna 本体付属のプラグインのソースを include する (B.C.) Ethna 2.5.0 perview 5 以降,このメソッドには意味がありません.Ethna_Plugin::import を使ってください

  • access: public
void includeEthnaPlugin (string $type, string $name)
  • string $type: プラグインの種類
  • string $name: プラグインの名前
Constructor __construct (line 55)

Ethna_Pluginのコンストラクタ

  • access: public
Ethna_Plugin __construct (object Ethna_Controller $controller)
getPlugin (line 92)

プラグインのインスタンスを取得

  • access: public
object プラグインのインスタンス getPlugin (string $type, string $name)
  • string $type: プラグインの種類
  • string $name: プラグインの名前
getPluginList (line 104)

ある種類 ($type) のプラグイン ($name) の全リストを取得

  • return: プラグインオブジェクトの配列
  • access: public
array getPluginList (string $type)
  • string $type: プラグインの種類
getPluginNaming (line 291)

プラグインのクラス名、ディレクトリ、ファイル名を決定

  • return: プラグインのクラス名、ファイル名の配列
  • access: public
array getPluginNaming (string $type, [string $name = null], [string $appid = 'Ethna'])
  • string $type: プラグインの種類
  • string $name: プラグインの名前 (nullのときは親クラス)
  • string $appid: アプリケーションID (廃止予定)
includePlugin (line 512)

プラグインのソースを include する

  • access: public
void includePlugin (string $type, [string $name = null])
  • string $type: プラグインの種類
  • string $name: プラグインの名前
searchAllPluginSrc (line 464)

指定された $type のプラグイン (のソース) をすべて検索する

  • access: public
void searchAllPluginSrc (string $type)
  • string $type: プラグインの種類
searchAllPluginType (line 441)

プラグインの種類 ($type) をすべて検索する

  • access: public
array searchAllPluginType ()
setLogger (line 75)

loggerをsetする。

LogWriterはpluginなので、pluginインスタンス作成時点では loggerに依存しないようにする。

  • access: public
void setLogger (object Ethna_Logger $logger)
setPlugin (line 166)

get plugin obejct and set to property

  • access: public
void setPlugin (string $plugin_alias_name, array $plugin)
  • string $plugin_alias_name: property name to set
  • array $plugin: array(type, name)
_searchPluginSrcDir (line 367)

プラグインのソースディレクトリを決定する

  • access: public
void _searchPluginSrcDir (string $type, [string $name = null])
  • string $type: プラグインの種類
  • string $name: プラグインの名前 (nullのときは親クラス)
_unloadPlugin (line 222)

プラグインのインスタンスをレジストリから消す

  • access: public
void _unloadPlugin (string $type, string $name)
  • string $type: プラグインの種類
  • string $name: プラグインの名前

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