Свойство | Тип | Описание | |
---|---|---|---|
$arguments | array | The arguments for this request | |
$command | |||
$commandLineArguments | array | ||
$controllerCommandName | string | ||
$controllerObjectName | string | ||
$dispatched | boolean | If this request has been changed and needs to be dispatched again | |
$exceedingArguments | array |
Метод | Описание | |
---|---|---|
getArgument ( string $argumentName ) : string | Returns the value of the specified argument | |
getArguments ( ) : array | Returns an ArrayObject of arguments and their values | |
getCommand ( ) : |
Returns the command object for this request | |
getControllerCommandName ( ) : string | Returns the name of the command the controller is supposed to execute. | |
getControllerObjectName ( ) : string | Returns the object name of the controller | |
getExceedingArguments ( ) : array | Returns additional unnamed arguments (if any) which have been passed through the command line after all required arguments (if any) have been specified. | |
getMainRequest ( ) : |
Returns the this request, as CLI request nesting is not supported. | |
hasArgument ( string $argumentName ) : boolean | Checks if an argument of the given name exists (is set) | |
isDispatched ( ) : boolean | If this request has been dispatched and addressed by the responsible controller and the response is ready to be sent. | |
isMainRequest ( ) : boolean | Returns true, as CLI request nesting is not supported. | |
setArgument ( string $argumentName, mixed $value ) : void | Sets the value of the specified argument | |
setArguments ( array $arguments ) : void | Sets the whole arguments array and therefore replaces any arguments which existed before. | |
setControllerCommandName ( string $commandName ) : void | Sets the name of the command contained in this request. | |
setControllerObjectName ( string $controllerObjectName ) : void | Sets the object name of the controller | |
setDispatched ( boolean $flag ) : void | Sets the dispatched flag | |
setExceedingArguments ( array $exceedingArguments ) : void | Sets the exceeding arguments |
public getArgument ( string $argumentName ) : string | ||
$argumentName | string | Name of the argument |
Результат | string | Value of the argument |
public getArguments ( ) : array | ||
Результат | array | Array of arguments and their values (which may be arguments and values as well) |
public getCommand ( ) : |
||
Результат |
public getControllerCommandName ( ) : string | ||
Результат | string | Command name |
public getControllerObjectName ( ) : string | ||
Результат | string | The controller's object name |
public getExceedingArguments ( ) : array | ||
Результат | array | Numeric array of exceeding argument values |
public getMainRequest ( ) : |
||
Результат |
public hasArgument ( string $argumentName ) : boolean | ||
$argumentName | string | Name of the argument to check |
Результат | boolean | TRUE if the argument is set, otherwise FALSE |
public isDispatched ( ) : boolean | ||
Результат | boolean | TRUE if this request has been dispatched successfully |
public isMainRequest ( ) : boolean | ||
Результат | boolean |
public setArguments ( array $arguments ) : void | ||
$arguments | array | An array of argument names and their values |
Результат | void |
public setControllerCommandName ( string $commandName ) : void | ||
$commandName | string | Name of the command to execute by the controller |
Результат | void |
public setControllerObjectName ( string $controllerObjectName ) : void | ||
$controllerObjectName | string | Object name of the controller which processes this request |
Результат | void |
public setDispatched ( boolean $flag ) : void | ||
$flag | boolean | If this request has been dispatched |
Результат | void |
public setExceedingArguments ( array $exceedingArguments ) : void | ||
$exceedingArguments | array | Numeric array of exceeding arguments |
Результат | void |
protected array $arguments | ||
Результат | array |
protected bool $dispatched | ||
Результат | boolean |