TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Mvc\Cli\Request Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\Cli\Request:
TYPO3\CMS\Extbase\Mvc\RequestInterface Tx_Extbase_MVC_CLI_Request

Public Member Functions

 setCallingScript ($callingScript)
 
 getCallingScript ()
 
 setDispatched ($flag)
 
 isDispatched ()
 
 setControllerObjectName ($controllerObjectName)
 
 getControllerObjectName ()
 
 getControllerExtensionName ()
 
 setControllerCommandName ($commandName)
 
 getControllerCommandName ()
 
 getCommand ()
 
 setArgument ($argumentName, $value)
 
 setArguments (array $arguments)
 
 getArgument ($argumentName)
 
 hasArgument ($argumentName)
 
 getArguments ()
 
 setExceedingArguments (array $exceedingArguments)
 
 getExceedingArguments ()
 

Protected Attributes

 $objectManager
 
 $controllerObjectName
 
 $controllerCommandName = 'default'
 
 $controllerExtensionName = NULL
 
 $arguments = array()
 
 $exceedingArguments = array()
 
 $dispatched = FALSE
 
 $commandLineArguments
 
 $command = NULL
 
 $callingScript
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Represents a CLI request.

http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later

Definition at line 22 of file Request.php.

Member Function Documentation

◆ getArgument()

TYPO3\CMS\Extbase\Mvc\Cli\Request::getArgument (   $argumentName)

Returns the value of the specified argument

Parameters
string$argumentNameName of the argument
Returns
string Value of the argument
Exceptions

Implements TYPO3\CMS\Extbase\Mvc\RequestInterface.

Definition at line 215 of file Request.php.

◆ getArguments()

TYPO3\CMS\Extbase\Mvc\Cli\Request::getArguments ( )

Returns an ArrayObject of arguments and their values

Returns
array Array of arguments and their values (which may be arguments and values as well)

Implements TYPO3\CMS\Extbase\Mvc\RequestInterface.

Definition at line 237 of file Request.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Request\$arguments.

◆ getCallingScript()

TYPO3\CMS\Extbase\Mvc\Cli\Request::getCallingScript ( )
Returns
string

Definition at line 89 of file Request.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Request\$callingScript.

◆ getCommand()

TYPO3\CMS\Extbase\Mvc\Cli\Request::getCommand ( )

Returns the command object for this request

Returns

Definition at line 175 of file Request.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Request\$command.

◆ getControllerCommandName()

TYPO3\CMS\Extbase\Mvc\Cli\Request::getControllerCommandName ( )

Returns the name of the command the controller is supposed to execute.

Returns
string Command name

Definition at line 166 of file Request.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Request\$controllerCommandName.

◆ getControllerExtensionName()

TYPO3\CMS\Extbase\Mvc\Cli\Request::getControllerExtensionName ( )

Returns the extension name of the specified controller.

Returns
string The extension name

Definition at line 144 of file Request.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Request\$controllerExtensionName.

◆ getControllerObjectName()

TYPO3\CMS\Extbase\Mvc\Cli\Request::getControllerObjectName ( )

Returns the object name of the controller

Returns
string The controller's object name

Implements TYPO3\CMS\Extbase\Mvc\RequestInterface.

Definition at line 135 of file Request.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Request\$controllerObjectName.

◆ getExceedingArguments()

TYPO3\CMS\Extbase\Mvc\Cli\Request::getExceedingArguments ( )

Returns additional unnamed arguments (if any) which have been passed through the command line after all required arguments (if any) have been specified.

For a command method with the signature ($argument1, $argument2) and for the command line cli_dispatch.phpsh extbase some-key someaction acme:foo –argument1 Foo –argument2 Bar baz quux this method would return array(0 => 'baz', 1 => 'quux')

Returns
array Numeric array of exceeding argument values

Definition at line 261 of file Request.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Request\$exceedingArguments.

◆ hasArgument()

TYPO3\CMS\Extbase\Mvc\Cli\Request::hasArgument (   $argumentName)

Checks if an argument of the given name exists (is set)

Parameters
string$argumentNameName of the argument to check
Returns
boolean TRUE if the argument is set, otherwise FALSE

Implements TYPO3\CMS\Extbase\Mvc\RequestInterface.

Definition at line 228 of file Request.php.

◆ isDispatched()

TYPO3\CMS\Extbase\Mvc\Cli\Request::isDispatched ( )

If this request has been dispatched and addressed by the responsible controller and the response is ready to be sent.

The dispatcher will try to dispatch the request again if it has not been addressed yet.

Returns
boolean TRUE if this request has been disptached successfully

Implements TYPO3\CMS\Extbase\Mvc\RequestInterface.

Definition at line 112 of file Request.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Request\$dispatched.

◆ setArgument()

TYPO3\CMS\Extbase\Mvc\Cli\Request::setArgument (   $argumentName,
  $value 
)

Sets the value of the specified argument

Parameters
string$argumentNameName of the argument to set
mixed$valueThe new value
Exceptions

Implements TYPO3\CMS\Extbase\Mvc\RequestInterface.

Definition at line 190 of file Request.php.

◆ setArguments()

TYPO3\CMS\Extbase\Mvc\Cli\Request::setArguments ( array  $arguments)

Sets the whole arguments ArrayObject and therefore replaces any arguments which existed before.

Parameters
array$argumentsAn array of argument names and their values
Returns
void

Implements TYPO3\CMS\Extbase\Mvc\RequestInterface.

Definition at line 204 of file Request.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Request\$arguments.

◆ setCallingScript()

TYPO3\CMS\Extbase\Mvc\Cli\Request::setCallingScript (   $callingScript)
Parameters
string$callingScript

Definition at line 82 of file Request.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Request\$callingScript.

◆ setControllerCommandName()

TYPO3\CMS\Extbase\Mvc\Cli\Request::setControllerCommandName (   $commandName)

Sets the name of the command contained in this request.

Note that the command name must start with a lower case letter and is case sensitive.

Parameters
string$commandNameName of the command to execute by the controller
Returns
void

Definition at line 156 of file Request.php.

◆ setControllerObjectName()

TYPO3\CMS\Extbase\Mvc\Cli\Request::setControllerObjectName (   $controllerObjectName)

Sets the object name of the controller

Parameters
string$controllerObjectNameThe fully qualified controller object name
Returns
void

Definition at line 122 of file Request.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Request\$controllerObjectName, and TYPO3\CMS\Core\Utility\ClassNamingUtility\explodeObjectControllerName().

◆ setDispatched()

TYPO3\CMS\Extbase\Mvc\Cli\Request::setDispatched (   $flag)

Sets the dispatched flag

Parameters
boolean$flagIf this request has been dispatched
Returns
void

Implements TYPO3\CMS\Extbase\Mvc\RequestInterface.

Definition at line 99 of file Request.php.

◆ setExceedingArguments()

TYPO3\CMS\Extbase\Mvc\Cli\Request::setExceedingArguments ( array  $exceedingArguments)

Sets the exceeding arguments

Parameters
array$exceedingArgumentsNumeric array of exceeding arguments
Returns
void

Definition at line 247 of file Request.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Request\$exceedingArguments.

Member Data Documentation

◆ $arguments

TYPO3\CMS\Extbase\Mvc\Cli\Request::$arguments = array()
protected

◆ $callingScript

TYPO3\CMS\Extbase\Mvc\Cli\Request::$callingScript
protected

◆ $command

TYPO3\CMS\Extbase\Mvc\Cli\Request::$command = NULL
protected

Definition at line 72 of file Request.php.

Referenced by TYPO3\CMS\Extbase\Mvc\Cli\Request\getCommand().

◆ $commandLineArguments

TYPO3\CMS\Extbase\Mvc\Cli\Request::$commandLineArguments
protected

Definition at line 67 of file Request.php.

◆ $controllerCommandName

TYPO3\CMS\Extbase\Mvc\Cli\Request::$controllerCommandName = 'default'
protected

◆ $controllerExtensionName

TYPO3\CMS\Extbase\Mvc\Cli\Request::$controllerExtensionName = NULL
protected

◆ $controllerObjectName

TYPO3\CMS\Extbase\Mvc\Cli\Request::$controllerObjectName
protected

◆ $dispatched

TYPO3\CMS\Extbase\Mvc\Cli\Request::$dispatched = FALSE
protected

Definition at line 62 of file Request.php.

Referenced by TYPO3\CMS\Extbase\Mvc\Cli\Request\isDispatched().

◆ $exceedingArguments

TYPO3\CMS\Extbase\Mvc\Cli\Request::$exceedingArguments = array()
protected

◆ $objectManager

TYPO3\CMS\Extbase\Mvc\Cli\Request::$objectManager
protected

Definition at line 28 of file Request.php.