« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 22 for addFunction (0.002 sec.)
SoapServer::addFunction — SOAP リクエストによって処理される単一もしくはいくつか... 14376
SoapServer::addFunction (PHP 5, PHP 7, PHP 8) SoapServer::addFunction — SOAP リクエストによって処理される単一もしくはいくつかの関数を追加する 説明 public function SoapServer::addFunction ( array | string | int $functions ): void リモートクラ ... には、名前付き出力パラメータの配列を返す必要があります。 戻り値 値を返しません。 変更履歴 バージョン 説明 8.4.0 SoapServer::addFunction() に int を渡すこと ( SOAP_FUNCTIONS_ALL を含む)は非推奨になりました。 例 例1 SoapServer::addFunction() の例 <?php funct ... ion echoString ( $inputString ) { return $inputString ; } $server -> addFunction ( "echoString" ); function echoTwoStrings ( $inputString1 , $inputString2 ) { return array( "outputString1" => $inputStrin ... g1 , "outputString2" => $inputString2 ); } $server -> addFunction (array( "echoString" , "echoTwoStrings" )); $functions = array_merge (... get_defined_functions ()); $server -> addFunctio ...
https://man.mtool.work/php/8.3/soapserver.addfunction.html
GearmanWorker::addFunction — Register and add callback function | PHP 8.3 11464
GearmanWorker::addFunction (PECL gearman >= 0.5.0) GearmanWorker::addFunction — Register and add callback function 説明 public function GearmanWorker::addFunction ( string $function_name , callable $function , mixed $context = null , int $t ... $worker -> addServer (); # define a variable to hold application data $count = 0 ; # add the "reverse" function $worker -> addFunction ( "reverse" , "reverse_cb" , $count ); # start the worker while ( $worker -> work ()); function reverse_cb ( $job , & $cou ...
https://man.mtool.work/php/8.3/gearmanworker.addfunction.html
SoapServer::getFunctions — 定義されている関数の一覧を返す | PHP 8.3 10285
SoapServer::getFunctions (PHP 5, PHP 7, PHP 8) SoapServer::getFunctions — 定義されている関数の一覧を返す 説明 public function SoapServer::getFunctions (): array SoapServer オブジェクトで定義されている関数の一覧を返します。 このメソッドは、 ... SoapServer::addFunction() もしくは SoapServer::setClass() で追加された全ての関数の一覧を返します。 パラメータ この関数にはパラメータはありません。 ... 1 SoapServer::getFunctions() の例 <?php $server = new SoapServer ( NULL , array( "uri" => "http://test-uri" )); $server -> addFunction ( SOAP_FUNCTIONS_ALL ); if ( $_SERVER [ "REQUEST_METHOD" ] == "POST" ) { $server -> handle (); } else { echo "This SOAP se ... $functions as $func ) { echo $func . "\n" ; } } ?> 参考 SoapServer::__construct() - SoapServer コンストラクタ SoapServer::addFunction() - SOAP リクエストによって処理される単一もしくはいくつかの関数を追加する SoapServer::setClass() - SOAP リクエストを処理す ...
https://man.mtool.work/php/8.3/soapserver.getfunctions.html
GearmanWorker::work — Wait for and perform jobs | PHP 8.3 9309
GearmanWorker::work (PECL gearman >= 0.5.0) GearmanWorker::work — Wait for and perform jobs 説明 public function GearmanWorker::work (): bool Waits for a job to be assigned and then calls the appropriate callback function. Issues an E_WARNI ... GearmanWorker (); # add the default job server (localhost) $worker -> addServer (); # add the reverse function $worker -> addFunction ( "reverse" , "my_reverse_function" ); # start te worker listening for job submissions while ( $worker -> work ()); functi ... on my_reverse_function ( $job ) { return strrev ( $job -> workload ()); } ?> 参考 GearmanWorker::addFunction() - Register and add callback function 他のマニュアルの関連ページ Linux JM wait(2) Django 1.5.7 Django 1.4.12 Docker swarm ...
https://man.mtool.work/php/8.3/gearmanworker.work.html
The GearmanWorker class | PHP 8.3 8888
The GearmanWorker class (PECL gearman >= 0.5.0) はじめに クラス概要 class GearmanWorker { /* メソッド */ public function __construct () public function addFunction ( string $function_name , callable $function , mixed $context = null , int $ ... l public function unregisterAll (): bool public function wait (): bool public function work (): bool } 目次 GearmanWorker::addFunction — Register and add callback function GearmanWorker::addOptions — Add worker options GearmanWorker::addServer — Add a job s ...
https://man.mtool.work/php/8.3/class.gearmanworker.html
SoapServer クラス | PHP 8.3 8770
SoapServer クラス (PHP 5, PHP 7, PHP 8) はじめに SoapServer クラスは » SOAP 1.1 および » SOAP 1.2 プロトコル用のサーバーとなります。 WSDL サービス記述を使用することもしないこともできます。 クラス概要 class SoapServer { /* プロパティ */ priv ... __soap_fault = null ; /* メソッド */ public function __construct ( ? string $wsdl , array $options = [] ) public function addFunction ( array | string | int $functions ): void public function addSoapHeader ( SoapHeader $header ): void public function fault ... ject $object ): void public function setPersistence ( int $mode ): void } プロパティ service __soap_fault 目次 SoapServer::addFunction — SOAP リクエストによって処理される単一もしくはいくつかの関数を追加する SoapServer::addSoapHeader — SOAP ヘッダをレスポンス ...
https://man.mtool.work/php/8.3/class.soapserver.html
SoapFault::__construct — SoapFault コンストラクタ | PHP 8.3 8568
SoapFault::__construct (PHP 5, PHP 7, PHP 8) SoapFault::__construct — SoapFault コンストラクタ 説明 public function SoapFault::__construct ( array | string | null $code , string $string , ? string $actor = null , mixed $details = null , ? s ... ( "Server" , "Some error message" ); } $server = new SoapServer ( null , array( 'uri' => "http://test-uri/" )); $server -> addFunction ( "test" ); $server -> handle (); ?> SOAP フォールトをスローするために PHP の例外機構を使用することができます。 例2 いくつ ... ( "Server" , "Some error message" ); } $server = new SoapServer ( null , array( 'uri' => "http://test-uri/" )); $server -> addFunction ( "test" ); $server -> handle (); ?> 参考 SoapServer::fault() - エラーを示す SoapServer フォールト を発行する is_soap_faul ...
https://man.mtool.work/php/8.3/soapfault.construct.html
GearmanClient::do — Run a single task and return a result [deprecated] | PHP 8.... 8030
GearmanClient::do (PECL gearman >= 0.5.0) GearmanClient::do — Run a single task and return a result [deprecated] 説明 public function GearmanClient::do ( string $function_name , string $workload , string $unique = ? ): string The GearmanCli ... verse" with the server. Change the worker function to # "reverse_fn_fast" for a faster worker with no output. $gmworker -> addFunction ( "reverse" , "reverse_fn" ); print "Waiting for job...\n" ; while( $gmworker -> work ()) { if ( $gmworker -> returnCode ( ... ; # Add default server (localhost). $gmworker -> addServer (); # Register function "reverse" with the server. $gmworker -> addFunction ( "reverse" , "reverse_fn" ); print "Waiting for job...\n" ; while( $gmworker -> work ()) { if ( $gmworker -> returnCode ( ...
https://man.mtool.work/php/8.3/gearmanclient.do.html
GearmanClient::doNormal — Run a single task and return a result | PHP 8.3 8030
GearmanClient::doNormal (No version information available, might only be in Git) GearmanClient::doNormal — Run a single task and return a result 説明 public function GearmanClient::doNormal ( string $function , string $workload , ? string $ ... verse" with the server. Change the worker function to # "reverse_fn_fast" for a faster worker with no output. $gmworker -> addFunction ( "reverse" , "reverse_fn" ); print "Waiting for job...\n" ; while( $gmworker -> work ()) { if ( $gmworker -> returnCode ( ... ; # Add default server (localhost). $gmworker -> addServer (); # Register function "reverse" with the server. $gmworker -> addFunction ( "reverse" , "reverse_fn" ); print "Waiting for job...\n" ; while( $gmworker -> work ()) { if ( $gmworker -> returnCode ( ...
https://man.mtool.work/php/8.3/gearmanclient.donormal.html
SoapServer::handle — SOAP リクエストを処理する | PHP 8.3 7912
SoapServer::handle (PHP 5, PHP 7, PHP 8) SoapServer::handle — SOAP リクエストを処理する 説明 public function SoapServer::handle ( ? string $request = null ): void SOAP リクエストを処理し、必要な関数をコールし、レスポンスを返送します。 パラメ ... p function test ( $x ) { return $x ; } $server = new SoapServer ( null , array( 'uri' => "http://test-uri/" )); $server -> addFunction ( "test" ); $server -> handle (); ?> 参考 SoapServer::__construct() - SoapServer コンストラクタ 他のマニュアルの関連ページ ...
https://man.mtool.work/php/8.3/soapserver.handle.html
PREV 1 2 3 NEXT