PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

Yaf_Dispatcher::registerPlugin - プラグインを登録する | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

Yaf_Dispatcher::registerPlugin

(Yaf >=1.0.0)

Yaf_Dispatcher::registerPluginプラグインを登録する

説明

public Yaf_Dispatcher Yaf_Dispatcher::registerPlugin ( Yaf_Plugin_Abstract $plugin )

プラグイン (Yaf_Plugin_Abstract を参照) を登録します。ふつうは、プラグインの登録はブートストラップ (Yaf_Bootstrap_Abstract を参照) で行います。

パラメータ

plugin

返り値

例1 Yaf_Dispatcher::registerPlugin() の例

<?php
class Bootstrap extends Yaf_Bootstrap_Abstract {
  public function 
_initPlugin(Yaf_Dispatcher $dispatcher) {
    
/**
    * Yaf assumes plugin scripts under [application.directory] .  "/plugins" 
    * for this case, it will be:
    * [application.directory] . "/plugins/" . "User" . [application.ext]
    */ 
    
$user = new UserPlugin();
    
$dispatcher->registerPlugin($user);
  }
}
?>

忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「Yaf_Dispatcher::registerPlugin - プラグインを登録する」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | Yaf_Dispatcher::registerPlugin - プラグインを登録する」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: