« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 100 for action (0.002 sec.)
The Parle\Parser class | PHP 8.3 11313
The Parle\Parser class (PECL parle >= 0.5.1) はじめに Parser class. Rules can be defined on the fly. Once finalized, a Parle\Lexer instance is required to deliver the token stream. クラス概要 class Parle\Parser { /* 定数 */ const int ACTION ... _ERROR = 0 ; const int ACTION_SHIFT = 1 ; const int ACTION_REDUCE = 2 ; const int ACTION_GOTO = 3 ; const int ACTION_ACCEPT = 4 ; const int ERROR_SYNTAX ... = 0 ; const int ERROR_NON_ASSOCIATIVE = 1 ; const int ERROR_UNKNOWN_TOKEN = 2 ; /* プロパティ */ public int $ action = 0 ; public int $ reduceId = 0 ; /* メソッド */ public function advance (): void public function build (): void public fu ... unction trace (): string public function validate ( string $data , Parle\Lexer $lexer ): bool } 定義済み定数 Parle\Parser::ACTION_ERROR Parle\Parser::ACTION_SHIFT Parle\Parser::ACTION_REDUCE Parle\Parser::ACTION_GOTO Parle\Parser::ACTION_ACCEPT Parle\P ...
https://man.mtool.work/php/8.3/class.parle-parser.html
The Parle\RParser class | PHP 8.3 11313
The Parle\RParser class (PECL parle >= 0.7.0) はじめに Parser class. Rules can be defined on the fly. Once finalized, a Parle\RLexer instance is required to deliver the token stream. クラス概要 class Parle\RParser { /* 定数 */ const int ACTION ... ION_ERROR = 0 ; const int ACTION_SHIFT = 1 ; const int ACTION_REDUCE = 2 ; const int ACTION_GOTO = 3 ; const int ACTION_ACCEPT = 4 ; const int ERROR_SYNTAX ... = 0 ; const int ERROR_NON_ASSOCIATIVE = 1 ; const int ERROR_UNKNOWN_TOKEN = 2 ; /* プロパティ */ public int $ action = 0 ; public int $ reduceId = 0 ; /* メソッド */ public function advance (): void public function build (): void public fu ... ction trace (): string public function validate ( string $data , Parle\RLexer $lexer ): bool } 定義済み定数 Parle\RParser::ACTION_ERROR Parle\RParser::ACTION_SHIFT Parle\RParser::ACTION_REDUCE Parle\RParser::ACTION_GOTO Parle\RParser::ACTION_ACCEPT Par ...
https://man.mtool.work/php/8.3/class.parle-rparser.html
Parser examples | PHP 8.3 11222
Parser examples 例1 Simple calculator <?php use Parle \{ Parser , ParserException , Lexer , Token }; $p = new Parser ; $p -> token ( "INTEGER" ); $p -> left ( "'+' '-' '*' '/'" ); $p -> push ( "start" , "exp" ); $prod_add = $p -> push ( "ex ... in , $lex )) { throw new ParserException ( "Failed to validate input" ); } $p -> consume ( $in , $lex ); while ( Parser :: ACTION_ERROR != $p -> action && Parser :: ACTION_ACCEPT != $p -> action ) { switch ( $p -> action ) { case Parser :: ACTION_ERROR ... : throw new ParserException ( "Parser error" ); break; case Parser :: ACTION_SHIFT : case Parser :: ACTION_GOTO : case Parser :: ACTION_ACCEPT : break; case Parser :: ACTION_REDUCE : switch ( $p -> r ... , Token :: SKIP ); $lex -> build (); $in = "Dis-moi où est ton papa?" ; $p -> consume ( $in , $lex ); do { switch ( $p -> action ) { case Parser :: ACTION_ERROR : throw new ParserException ( "Error" ); break; case Parser :: ACTION_SHIFT : case Parser ...
https://man.mtool.work/php/8.3/parle.examples.parser.html
win32_create_service — SCM データベースに新しいサービスのエントリを作成する | P... 11079
win32_create_service (PECL win32service >=0.1.0) win32_create_service — SCM データベースに新しいサービスのエントリを作成する 説明 function win32_create_service ( array $details , string $machine = null ): void SCM データベースに新しいサービ ... 失敗時とリカバリアクションの実行の間に取る時間を定義します。 この値はマイクロ秒単位です。 デフォルトは 60000 です。 recovery_action_1 最初の失敗時に実行されるアクションです。 デフォルトの値は WIN32_SC_ACTION_NONE です。 recovery_action_1 は、 Win32 Recov ... ery action で定義された定数のうちのひとつを設定できます。 recovery_action_2 二回目の失敗時に実行されるアクションです。 デフォルトの値 ... は WIN32_SC_ACTION_NONE です。 recovery_action_2 は、 Win32 Recovery action で定義された定数のうちのひとつを設定できます。 recovery_action_3 ...
https://man.mtool.work/php/8.3/function.win32-create-service.html
Yaf_Action_Abstract::getControllerName — Get controller name | PHP 8.3 10207
Yaf_Action_Abstract::getControllerName (Yaf >=3.3.7) Yaf_Action_Abstract::getControllerName — Get controller name 説明 public function Yaf_Action_Abstract::getControllerName (): ? string Returns the name of the controller that owns this action ... ラメータ この関数にはパラメータはありません。 戻り値 The controller name as a string , or null if it is not set. 例 例1 Yaf_Action_Abstract::getControllerName() example <?php class ListAction extends Yaf_Action_Abstract { public function execute () { // ... the name of the controller that owns this action, // e.g. "Product" for a ProductController var_dump ( $this -> getControllerName ()); } } ?> 上の例の出力は、 たとえば以下 ... のようになります。 string(7) "Product" 参考 Yaf_Action_Abstract::getController() - コントローラオブジェクトを取得する Yaf_Controller_Abstract::getName() - Get controller name 他 ...
https://man.mtool.work/php/8.3/yaf-controller-abstract.getcontrollername.html
Yaf_Action_Abstract クラス | PHP 8.3 8907
Yaf_Action_Abstract クラス (Yaf >=1.0.0) はじめに アクションは、Yaf の個別のファイルで定義します ( Yaf_Controller_Abstract を参照ください)。 アクションメソッドには Yaf_Action_Abstract クラスも使えます。 Yaf から呼び出すためのエントリポイント ... が必要なので、 抽象メソッド Yaf_Action_Abstract::execute() をアクションクラスで実装する必要があります。 クラス概要 class Yaf_Action_Abstract extends Yaf_Controll ... Abstract::display ( string $tpl , array $parameters = ? ): bool public function Yaf_Controller_Abstract::forward ( string $action , array $paramters = ? ): bool public function Yaf_Controller_Abstract::getInvokeArg ( string $name ): void public functio ... ath ( string $view_directory ): void } プロパティ _module _name _request _response _invoke_args _view _controller 目次 Yaf_Action_Abstract::execute — アクションのエントリポイント Yaf_Action_Abstract::getController — コントローラオブジェクトを取得する Y ...
https://man.mtool.work/php/8.3/class.yaf-action-abstract.html
Yaf_Action_Abstract::execute — アクションのエントリポイント | PHP 8.3 8764
Yaf_Action_Abstract::execute (Yaf >=1.0.0) Yaf_Action_Abstract::execute — アクションのエントリポイント 説明 abstract public function Yaf_Action_Abstract::execute ( mixed ...$args ): mixed このメソッドは、アクションで常に定義しないといけませ ... ん。これがアクションのエントリポイントになります。 Yaf_Action_Abstract::execute() は引数をとることもあります。 注意 : リクエストから取得した値は安全ではありません。 使う前にフィルタリン ... グが必要です。 パラメータ args 戻り値 例 例1 Yaf_Action_Abstract::execute() の例 <?php /** * A controller example */ class ProductController extends Yaf_Controller_Abstract { pro ... tected $actions = array( "index" => "actions/Index.php" , ); } ?> 例2 Yaf_Action_Abstract::execute() の例 <?php /** * ListAction */ class ...
https://man.mtool.work/php/8.3/yaf-action-abstract.execute.html
Yaf_Route_Static::route — リクエストをルーティングする | PHP 8.3 8348
Yaf_Route_Static::route (Yaf >=1.0.0) Yaf_Route_Static::route — リクエストをルーティングする 説明 public function Yaf_Route_Static::route ( Yaf_Request_Abstract $request ): bool 警告 この関数は、 現在のところ詳細な情報はありません。引数のリ ... の例 // assuming there is only one module defined:Index Request: http://yourdomain.com/a/b => module = index, controller=a, action=b //assuming ap.action_prefer = On Request: http://yourdomain.com/b => module = default(index), controller = default(index ... ), action = b //assuming ap.action_prefer = Off Request: http://yourdomain.com/b => module = default(index), controller = b, action ... = default(index) Request: http://yourdomain.com/a/b/foo/bar/test/a/id/4 => module = default(index), controller = a, action = b, request parameters: foo = bar, test = a, id = 4 参考 Yaf_Route_Supervar::route() - The route purpose Yaf_Route_Simple ...
https://man.mtool.work/php/8.3/yaf-route-static.route.html
Yaf_Controller_Abstract::forward — 別のアクションに転送する | PHP 8.3 7971
Yaf_Controller_Abstract::forward (Yaf >=1.0.0) Yaf_Controller_Abstract::forward — 別のアクションに転送する 説明 public function Yaf_Controller_Abstract::forward ( string $action , array $paramters = ? ): bool public function Yaf_Controller_ ... Abstract::forward ( string $controller , string $action , array $paramters = ? ): bool public function Yaf_Controller_Abstract::forward ( string $module , string $controller , st ... ring $action , array $paramters = ? ): bool 現在の実行プロセスを別のアクションに転送します。 注意 : このメソッドは、その場ですぐに次のア ... module 移動先のモジュール名。NULL を渡した場合はデフォルトのモジュール名と見なします。 controller 移動先のコントローラ名。 action 移動先のアクション名。 paramters 呼び出しの引数。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 ...
https://man.mtool.work/php/8.3/yaf-controller-abstract.forward.html
Yaf_Controller_Abstract クラス | PHP 8.3 7828
Yaf_Controller_Abstract クラス (Yaf >=1.0.0) はじめに Yaf_Controller_Abstract は Yaf システムの中心となるクラスです。 MVC は Model-View-Controller の略で、 アプリケーションのロジックと表示のロジックを切り離すためのデザインパターンです。 すべ ... エストのパラメータ ( Yaf_Request_Abstract::getParam() を参照ください) に同名の変数があれば、Yaf はアクションのメソッド ( Yaf_Action_Abstract::execute() を参照ください) にそれを渡します。 注意 : これらの引数は何もフィルタリングせずそのまま取り込まれるので ... 、 実際に使う前には注意しないといけません。 クラス概要 abstract class Yaf_Controller_Abstract { /* プロパティ */ public $ actions ; protected $ _module ; protected $ _name ; protected $ _request ; protected $ _response ; protected $ _invoke_args ; pro ... __construct () protected function display ( string $tpl , array $parameters = ? ): bool public function forward ( string $action , array $paramters = ? ): bool public function getInvokeArg ( string $name ): void public function getInvokeArgs (): void ...
https://man.mtool.work/php/8.3/class.yaf-controller-abstract.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT