PHP 클래스 Neos\Flow\Cli\Request

상속: implements Neos\Flow\Mvc\RequestInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$arguments array The arguments for this request
$command 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 ( ) : Command 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 ( ) : Request 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

메소드 상세

getArgument() 공개 메소드

Returns the value of the specified argument
public getArgument ( string $argumentName ) : string
$argumentName string Name of the argument
리턴 string Value of the argument

getArguments() 공개 메소드

Returns an ArrayObject of arguments and their values
public getArguments ( ) : array
리턴 array Array of arguments and their values (which may be arguments and values as well)

getCommand() 공개 메소드

Returns the command object for this request
public getCommand ( ) : Command
리턴 Command

getControllerCommandName() 공개 메소드

Returns the name of the command the controller is supposed to execute.
public getControllerCommandName ( ) : string
리턴 string Command name

getControllerObjectName() 공개 메소드

Returns the object name of the controller
public getControllerObjectName ( ) : string
리턴 string The controller's object name

getExceedingArguments() 공개 메소드

For a command method with the signature ($argument1, $argument2) and for the command line ./flow acme:foo --argument1 Foo --argument2 Bar baz quux this method would return array(0 => 'baz', 1 => 'quux')
public getExceedingArguments ( ) : array
리턴 array Numeric array of exceeding argument values

getMainRequest() 공개 메소드

Returns the this request, as CLI request nesting is not supported.
public getMainRequest ( ) : Request
리턴 Request

hasArgument() 공개 메소드

Checks if an argument of the given name exists (is set)
public hasArgument ( string $argumentName ) : boolean
$argumentName string Name of the argument to check
리턴 boolean TRUE if the argument is set, otherwise FALSE

isDispatched() 공개 메소드

The dispatcher will try to dispatch the request again if it has not been addressed yet.
public isDispatched ( ) : boolean
리턴 boolean TRUE if this request has been dispatched successfully

isMainRequest() 공개 메소드

Returns true, as CLI request nesting is not supported.
public isMainRequest ( ) : boolean
리턴 boolean

setArgument() 공개 메소드

Sets the value of the specified argument
public setArgument ( string $argumentName, mixed $value ) : void
$argumentName string Name of the argument to set
$value mixed The new value
리턴 void

setArguments() 공개 메소드

Sets the whole arguments array and therefore replaces any arguments which existed before.
public setArguments ( array $arguments ) : void
$arguments array An array of argument names and their values
리턴 void

setControllerCommandName() 공개 메소드

Note that the command name must start with a lower case letter and is case sensitive.
public setControllerCommandName ( string $commandName ) : void
$commandName string Name of the command to execute by the controller
리턴 void

setControllerObjectName() 공개 메소드

Sets the object name of the controller
public setControllerObjectName ( string $controllerObjectName ) : void
$controllerObjectName string Object name of the controller which processes this request
리턴 void

setDispatched() 공개 메소드

Sets the dispatched flag
public setDispatched ( boolean $flag ) : void
$flag boolean If this request has been dispatched
리턴 void

setExceedingArguments() 공개 메소드

Sets the exceeding arguments
public setExceedingArguments ( array $exceedingArguments ) : void
$exceedingArguments array Numeric array of exceeding arguments
리턴 void

프로퍼티 상세

$arguments 보호되어 있는 프로퍼티

The arguments for this request
protected array $arguments
리턴 array

$command 보호되어 있는 프로퍼티

protected Command,Neos\Flow\Cli $command
리턴 Command

$commandLineArguments 보호되어 있는 프로퍼티

protected array $commandLineArguments
리턴 array

$controllerCommandName 보호되어 있는 프로퍼티

protected string $controllerCommandName
리턴 string

$controllerObjectName 보호되어 있는 프로퍼티

protected string $controllerObjectName
리턴 string

$dispatched 보호되어 있는 프로퍼티

If this request has been changed and needs to be dispatched again
protected bool $dispatched
리턴 boolean

$exceedingArguments 보호되어 있는 프로퍼티

protected array $exceedingArguments
리턴 array