Results of 1 - 10 of about 134 for dispatcher (0.002 sec.)
- Yaf_Dispatcher クラス 8682
- « Yaf_Bootstrap_Abstract Yaf_Dispatcher::autoRender » PHP Manual Yaf Yaf_Dispatcher クラス 検索 Yaf_Dispatcher クラス (Yaf >=1.0.0) はじめに Yaf_Dispatcher の役割は、 リクエスト環境の初期化、やってきたリクエストのルーティング、 そして見つか
... ったアクションへのディスパッチです。 あらゆるレスポンスを取りまとめ、処理が完了した後でそれを返します。 Yaf_Dispatcher はシングルトンパターンを実装しています。 つまり、同時に複数のインスタンスは作れないということです。 そのため、このクラスを ... レジストリとして使い、 ディスパッチ中に他のオブジェクトから参照させることもできます。 クラス概要 final class Yaf_Dispatcher { /* プロパティ */ protected $ _router ; protected $ _view ; protected $ _request ; protected $ _plugins ; protected stati ... ected $ _default_action ; /* メソッド */ public function __construct () public function autoRender ( bool $flag = ? ): Yaf_Dispatcher public function catchException ( bool $flag = ? ): Yaf_Dispatcher public function disableView (): bool public function dis ...
-
https://man.mtool.work/php/8.3/class.yaf-dispatcher.html
- Yaf_Dispatcher クラス 8658
- « Yaf_Bootstrap_Abstract Yaf_Dispatcher::autoRender » PHP Manual Yaf Yaf_Dispatcher クラス 検索 Yaf_Dispatcher クラス (Yaf >=1.0.0) はじめに Yaf_Dispatcher の役割は、 リクエスト環境の初期化、やってきたリクエストのルーティング、 そして見つか
... ったアクションへのディスパッチです。 あらゆるレスポンスを取りまとめ、処理が完了した後でそれを返します。 Yaf_Dispatcher はシングルトンパターンを実装しています。 つまり、同時に複数のインスタンスは作れないということです。 そのため、このクラスを ... レジストリとして使い、 ディスパッチ中に他のオブジェクトから参照させることもできます。 クラス概要 final class Yaf_Dispatcher { /* プロパティ */ protected $ _router ; protected $ _view ; protected $ _request ; protected $ _plugins ; protected stati ... ected $ _default_action ; /* メソッド */ public function __construct () public function autoRender ( bool $flag = ? ): Yaf_Dispatcher public function catchException ( bool $flag = ? ): Yaf_Dispatcher public function disableView (): bool public function dis ...
-
https://man.mtool.work/php/8.3/class.yaf-dispatcher.html
- Set the response object 7802
- « Yaf_Dispatcher::setRequest Yaf_Dispatcher::setView » PHP Manual Yaf_Dispatcher Set the response object 検索 Yaf_Dispatcher::setResponse (Yaf >=3.2.2) Yaf_Dispatcher::setResponse — Set the response object 説明 public function Yaf_Dispatcher
... r::setResponse ( Yaf_Response_Abstract $response ): ? Yaf_Dispatcher Set the response object used by the dispatcher. This allows using a custom response implementation instead of the built-in ... ones. パラメータ response A Yaf_Response_Abstract instance. 戻り値 Returns the Yaf_Dispatcher object itself on success, or null if the application is not initialized. 例 例1 Yaf_Dispatcher::setResponse() example <?ph ... ion/json" ); parent :: response (); } } $app = new Yaf_Application ( dirname ( __FILE__ ) . "/conf/application.ini" ); Yaf_Dispatcher :: getInstance ()-> setResponse (new ApiResponse ()); $app -> run (); ?> 参考 Yaf_Dispatcher::getResponse() - Get the resp ...
-
https://man.mtool.work/php/8.3/yaf-dispatcher.setresponse.html
- Set the response object 7802
- « Yaf_Dispatcher::setRequest Yaf_Dispatcher::setView » PHP Manual Yaf_Dispatcher Set the response object 検索 Yaf_Dispatcher::setResponse (Yaf >=3.2.2) Yaf_Dispatcher::setResponse — Set the response object 説明 public function Yaf_Dispatcher
... r::setResponse ( Yaf_Response_Abstract $response ): ? Yaf_Dispatcher Set the response object used by the dispatcher. This allows using a custom response implementation instead of the built-in ... ones. パラメータ response A Yaf_Response_Abstract instance. 戻り値 Returns the Yaf_Dispatcher object itself on success, or null if the application is not initialized. 例 例1 Yaf_Dispatcher::setResponse() example <?ph ... ion/json" ); parent :: response (); } } $app = new Yaf_Application ( dirname ( __FILE__ ) . "/conf/application.ini" ); Yaf_Dispatcher :: getInstance ()-> setResponse (new ApiResponse ()); $app -> run (); ?> 参考 Yaf_Dispatcher::getResponse() - Get the resp ...
-
https://man.mtool.work/php/8.3/yaf-dispatcher.setresponse.html
- Retrieve the default action name 7754
- « Yaf_Dispatcher::getApplication Yaf_Dispatcher::getDefaultController » PHP Manual Yaf_Dispatcher Retrieve the default action name 検索 Yaf_Dispatcher::getDefaultAction (Yaf >=3.2.0) Yaf_Dispatcher::getDefaultAction — Retrieve the default a
... ction name 説明 public function Yaf_Dispatcher::getDefaultAction (): ? string Get the default action name, which is used when an action name can not be extracted from th ... の関数にはパラメータはありません。 戻り値 The default action name, or null if the application is not initialized. 例 例1 Yaf_Dispatcher::getDefaultAction() example <?php $app = new Yaf_Application ( dirname ( __FILE__ ) . "/conf/application.ini" ); $dispatch ... er = Yaf_Dispatcher :: getInstance (); var_dump ( $dispatcher -> getDefaultAction ()); $dispatcher -> setDefaultAction ( "main" ); var_dump ( ...
-
https://man.mtool.work/php/8.3/yaf-dispatcher.getdefaultaction.html
- Retrieve the default action name 7754
- « Yaf_Dispatcher::getApplication Yaf_Dispatcher::getDefaultController » PHP Manual Yaf_Dispatcher Retrieve the default action name 検索 Yaf_Dispatcher::getDefaultAction (Yaf >=3.2.0) Yaf_Dispatcher::getDefaultAction — Retrieve the default a
... ction name 説明 public function Yaf_Dispatcher::getDefaultAction (): ? string Get the default action name, which is used when an action name can not be extracted from th ... の関数にはパラメータはありません。 戻り値 The default action name, or null if the application is not initialized. 例 例1 Yaf_Dispatcher::getDefaultAction() example <?php $app = new Yaf_Application ( dirname ( __FILE__ ) . "/conf/application.ini" ); $dispatch ... er = Yaf_Dispatcher :: getInstance (); var_dump ( $dispatcher -> getDefaultAction ()); $dispatcher -> setDefaultAction ( "main" ); var_dump ( ...
-
https://man.mtool.work/php/8.3/yaf-dispatcher.getdefaultaction.html
- Get the response object 7657
- « Yaf_Dispatcher::getRequest Yaf_Dispatcher::getRouter » PHP Manual Yaf_Dispatcher Get the response object 検索 Yaf_Dispatcher::getResponse (Yaf >=1.0.0) Yaf_Dispatcher::getResponse — Get the response object 説明 public function Yaf_Dispatcher
... her::getResponse (): ? Yaf_Response_Abstract Retrieve the Yaf_Response_Abstract instance used by the dispatcher. パラメータ この関数にはパラメータはありません。 戻り値 The Yaf_Response_Abstract instance, or null if the application is ... not initialized. 例 例1 Yaf_Dispatcher::getResponse() example <?php class CharsetPlugin extends Yaf_Plugin_Abstract { public function preDispatch ( Yaf_Request_A ... bstract $request , Yaf_Response_Abstract $response ) { // Same response object as the one held by the dispatcher Yaf_Dispatcher :: getInstance ()-> getResponse ()-> setHeader ( "Content-Type" , "text/html; charset=utf-8" ); } } ?> 参考 ...
-
https://man.mtool.work/php/8.3/yaf-dispatcher.getresponse.html
- Get the response object 7657
- « Yaf_Dispatcher::getRequest Yaf_Dispatcher::getRouter » PHP Manual Yaf_Dispatcher Get the response object 検索 Yaf_Dispatcher::getResponse (Yaf >=1.0.0) Yaf_Dispatcher::getResponse — Get the response object 説明 public function Yaf_Dispatcher
... her::getResponse (): ? Yaf_Response_Abstract Retrieve the Yaf_Response_Abstract instance used by the dispatcher. パラメータ この関数にはパラメータはありません。 戻り値 The Yaf_Response_Abstract instance, or null if the application is ... not initialized. 例 例1 Yaf_Dispatcher::getResponse() example <?php class CharsetPlugin extends Yaf_Plugin_Abstract { public function preDispatch ( Yaf_Request_A ... bstract $request , Yaf_Response_Abstract $response ) { // Same response object as the one held by the dispatcher Yaf_Dispatcher :: getInstance ()-> getResponse ()-> setHeader ( "Content-Type" , "text/html; charset=utf-8" ); } } ?> 参考 ...
-
https://man.mtool.work/php/8.3/yaf-dispatcher.getresponse.html
- プラグインを登録する 7609
- « Yaf_Dispatcher::initView Yaf_Dispatcher::returnResponse » PHP Manual Yaf_Dispatcher プラグインを登録する 検索 Yaf_Dispatcher::registerPlugin (Yaf >=1.0.0) Yaf_Dispatcher::registerPlugin — プラグインを登録する 説明 public function Yaf_Dispatcher
... atcher::registerPlugin ( Yaf_Plugin_Abstract $plugin ): Yaf_Dispatcher プラグイン ( Yaf_Plugin_Abstract を参照) を登録します。ふつうは、プラグインの登録はブートストラップ ( Yaf_Bootstrap_Abstra ... ct を参照) で行います。 パラメータ 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: * [applicatio ...
-
https://man.mtool.work/php/8.3/yaf-dispatcher.registerplugin.html
- プラグインを登録する 7609
- « Yaf_Dispatcher::initView Yaf_Dispatcher::returnResponse » PHP Manual Yaf_Dispatcher プラグインを登録する 検索 Yaf_Dispatcher::registerPlugin (Yaf >=1.0.0) Yaf_Dispatcher::registerPlugin — プラグインを登録する 説明 public function Yaf_Dispatcher
... atcher::registerPlugin ( Yaf_Plugin_Abstract $plugin ): Yaf_Dispatcher プラグイン ( Yaf_Plugin_Abstract を参照) を登録します。ふつうは、プラグインの登録はブートストラップ ( Yaf_Bootstrap_Abstra ... ct を参照) で行います。 パラメータ 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: * [applicatio ...
-
https://man.mtool.work/php/8.3/yaf-dispatcher.registerplugin.html