« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 76 for Plugin (0.002 sec.)
mysqlndプラグインの開発をはじめよう | PHP 8.3 11761
mysqlndプラグインの開発をはじめよう mysqlnd プラグイン それ自体が PHP拡張モジュール であることを覚えておくことが重要です。 次のコードは、典型的な mysqlnd プラグインで使われる MINIT 関数の基本構造を示します。 /* my_php_mysqlnd_plugin.c */ st ... atic PHP_MINIT_FUNCTION(mysqlnd_plugin) { /* globals, ini entries, resources, classes */ /* register mysqlnd plugin */ mysqlnd_plugin_id = mysqlnd_plugin_registe ... conn_methods(); memcpy(org_conn_m, conn_m, sizeof(struct st_mysqlnd_conn_methods)); conn_m->query = MYSQLND_METHOD(mysqlnd_plugin_conn, query); conn_m->connect = MYSQLND_METHOD(mysqlnd_plugin_conn, connect); } /* my_mysqlnd_plugin.c */ enum_func_status ... MYSQLND_METHOD(mysqlnd_plugin_conn, query)(/* ... */) { /* ... */ } enum_func_status MYSQLND_METHOD(mysqlnd_plugin_conn, connect)(/* ... */) { /* ... */ ...
https://man.mtool.work/php/8.3/mysqlnd.plugin.developing.html
mysqlnd のプラグインAPI | PHP 8.3 11539
mysqlnd のプラグインAPI mysqlnd プラグインAPI で提供されている関数のリストを以下に示します: mysqlnd_plugin_register() mysqlnd_plugin_count() mysqlnd_plugin_get_plugin_connection_data() mysqlnd_plugin_get_plugin_result_data() mysqlnd_plugin_ ... get_plugin_stmt_data() mysqlnd_plugin_get_plugin_net_data() mysqlnd_plugin_get_plugin_protocol_data() mysqlnd_conn_get_methods() mysq ... ドの中で query メソッドの親クラスの実装を呼び出します。 PHP 拡張モジュールの動きを再現する サンプルのプラグイン ext/mysqlnd_plugin を使うと何が起こるかを以下で再現します。このプラグインは、 mysqlnd の CプラグインAPI をPHPに公開しています。 PHP で書かれた ... う。これら3つの PHP MySQL 拡張モジュールは mysqlnd を使って 192.168.2.29 に接続を確立しようとします。 mysqlnd は ext/mysqlnd_plugin を継承した自分自身の connect メソッドを呼び出します。 ext/mysqlnd_plugin は ユーザーが登録した ユーザースペースのフックであ ...
https://man.mtool.work/php/8.3/mysqlnd.plugin.api.html
Yaf_Dispatcher::registerPlugin — プラグインを登録する | PHP 8.3 10847
Yaf_Dispatcher::registerPlugin (Yaf >=1.0.0) Yaf_Dispatcher::registerPlugin — プラグインを登録する 説明 public function Yaf_Dispatcher::registerPlugin ( Yaf_Plugin_Abstract $plugin ): Yaf_Dispatcher プラグイン ( 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 ca ... se, it will be: * [application.directory] . "/plugins/" . "User" . [application.ext] */ $user = new UserPlugin (); $dispatcher -> registerPlugin ( $user ); } } ?> 参考 Yaf_Plu ...
https://man.mtool.work/php/8.3/yaf-dispatcher.registerplugin.html
Yaf_Plugin_Abstract::routerShutdown — The routerShutdown purpose | PHP 8.3 10791
Yaf_Plugin_Abstract::routerShutdown (Yaf >=1.0.0) Yaf_Plugin_Abstract::routerShutdown — The routerShutdown purpose 説明 public function Yaf_Plugin_Abstract::routerShutdown ( Yaf_Request_Abstract $request , Yaf_Response_Abstract $response ): ... ングが終了したときです。 このフックは、ログインのチェックなどでよく使います。 パラメータ request response 戻り値 例 例1 Yaf_Plugin_Abstract::routerShutdown() の例 <?php class UserInitPlugin extends Yaf_Plugin_Abstract { public function routerShutdown ( ... check failed, need to login */ $response -> setRedirect ( "http://yourdomain.com/login/" ); return FALSE ; } } ?> 参考 Yaf_Plugin_Abstract::routerStartup() - RouterStartup フック Yaf_Plugin_Abstract::dispatchLoopStartup() - ディスパッチループの前にフッ ... クする Yaf_Plugin_Abstract::preDispatch() - The preDispatch purpose Yaf_Plugin_Abstract::postDispatch() - The postDispatch purpose Yaf_Plugi ...
https://man.mtool.work/php/8.3/yaf-plugin-abstract.routershutdown.html
Yaf_Plugin_Abstract クラス | PHP 8.3 10154
Yaf_Plugin_Abstract クラス (Yaf >=1.0.0) はじめに プラグインを使えば、フレームワークの拡張やカスタマイズを簡単に行えます。 プラグインは、クラスとして定義します。 実際のクラスの定義はコンポーネントによって異なります。 このインターフェイスを実 ... ませんが、 プラグイン自体がクラスであるという事実は変わりません。 プラグインを Yaf にロードするには Yaf_Dispatcher::registerPlugin() を使います。登録を済ませれば、このインターフェイスに従って実装した すべてのメソッドが適切な場面で呼ばれます。 例 例1 プラ ... ould be defined under ./application/Bootstrap.php */ class Bootstrap extends Yaf_Bootstrap_Abstract { public function _initPlugin ( Yaf_Dispatcher $dispatcher ) { /* register a plugin */ $dispatcher -> registerPlugin (new TestPlugin ()); } } /* plugin ... class should be placed under ./application/plugins/ */ class TestPlugin extends Yaf_Plugin_Abstract { public function routerStartup ( Yaf_Request_Abstract $request , Yaf_Re ...
https://man.mtool.work/php/8.3/class.yaf-plugin-abstract.html
Yaf_Plugin_Abstract::dispatchLoopShutdown — The dispatchLoopShutdown purpose | ... 10057
Yaf_Plugin_Abstract::dispatchLoopShutdown (Yaf >=1.0.0) Yaf_Plugin_Abstract::dispatchLoopShutdown — The dispatchLoopShutdown purpose 説明 public function Yaf_Plugin_Abstract::dispatchLoopShutdown ( Yaf_Request_Abstract $request , Yaf_Respon ... 数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。 パラメータ request response 戻り値 参考 Yaf_Plugin_Abstract::routerStartup() - RouterStartup フック Yaf_Plugin_Abstract::routerShutdown() - The routerShutdown purpose Yaf_Pl ... ugin_Abstract::dispatchLoopStartup() - ディスパッチループの前にフックする Yaf_Plugin_Abstract::preDispatch() - The preDispatch purpose Yaf_Plugin_Abstract::postDispatch() - The postDispatch purpose 他のマニュ ...
https://man.mtool.work/php/8.3/yaf-plugin-abstract.dispatchloopshutdown.html
Yaf_Plugin_Abstract::routerStartup — RouterStartup フック | PHP 8.3 10057
Yaf_Plugin_Abstract::routerStartup (Yaf >=1.0.0) Yaf_Plugin_Abstract::routerStartup — RouterStartup フック 説明 public function Yaf_Plugin_Abstract::routerStartup ( Yaf_Request_Abstract $request , Yaf_Response_Abstract $response ): void これ ... 数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。 パラメータ request response 戻り値 参考 Yaf_Plugin_Abstract::routerShutdown() - The routerShutdown purpose Yaf_Plugin_Abstract::dispatchLoopStartup() - ディスパッチループの前 ... にフックする Yaf_Plugin_Abstract::preDispatch() - The preDispatch purpose Yaf_Plugin_Abstract::postDispatch() - The postDispatch purpose Yaf_Plugi ...
https://man.mtool.work/php/8.3/yaf-plugin-abstract.routerstartup.html
Xhprof 関数 | PHP 8.3 8533
Xhprof 関数 目次 xhprof_disable — xhprof プロファイラを終了する xhprof_enable — xhprof プロファイラを開始する xhprof_sample_disable — xhprof サンプルプロファイラを終了する xhprof_sample_enable — サンプリングモードでの XHProf プロファイリング ... を開始する 他のマニュアルの関連ページ Docker docker plugin disable Docker docker plugin rm Docker docker plugin enable Python profiling Docker docker plugin inspect ...
https://man.mtool.work/php/8.3/ref.xhprof.html
MySQL Native Driverプラグイン のアーキテクチャ | PHP 8.3 8298
MySQL Native Driverプラグイン のアーキテクチャ このセクションでは、 mysqlnd プラグイン のアーキテクチャについての概要を示します。 MySQL Native Driver の概要 mysqlnd プラグイン を開発する前に、 mysqlnd そのものがどのように成り立っているのかを ... することは不可能です。 mysqlnd オブジェクト のユーザーは、プロパティを単純にオブジェクトに追加することはできません。 mysqlnd_plugin_get_plugin_<object>_data() ファミリーの適切な関数を使って、任意のデータ (プロパティ) を mysqlnd オブジェクトに追加すること ... any data we want to associate */ typedef struct my_conn_properties { unsigned long query_counter; } MY_CONN_PROPERTIES; /* plugin id */ unsigned int my_plugin_id; void minit_register_hooks(TSRMLS_D) { /* obtain unique plugin ID */ my_plugin_id = mysqln ... d_plugin_register(); /* snip - see Extending Connection: methods */ } static MY_CONN_PROPERTIES** get_conn_properties(const MYSQLND ...
https://man.mtool.work/php/8.3/mysqlnd.plugin.architecture.html
インストール手順 | PHP 8.3 7882
インストール手順 この拡張モジュールはデフォルトで有効になっています。無効にしたい場合は、次のオプションを指定してコンパイルします。 --disable-simplexml 他のマニュアルの関連ページ Vim if_mzsch Docker docker plugin disable Vim os_mac DuckDB P ... ersistent Testing Docker docker plugin rm Docker docker plugin install ...
https://man.mtool.work/php/8.3/simplexml.installation.html
PREV 1 2 3 4 5 6 7 8 NEXT