TYPO3
7.6
|
Public Member Functions | |
injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) | |
injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService) | |
__construct ($controllerClassName, $controllerCommandName) | |
getControllerClassName () | |
getControllerCommandName () | |
getCommandIdentifier () | |
getExtensionName () | |
getShortDescription () | |
getDescription () | |
hasArguments () | |
getArgumentDefinitions () | |
isInternal () | |
isCliOnly () | |
isFlushingCaches () | |
getRelatedCommandIdentifiers () | |
Protected Member Functions | |
getCommandMethodReflection () | |
Protected Attributes | |
$objectManager | |
$controllerClassName | |
$controllerCommandName | |
$commandIdentifier | |
$commandMethodReflection | |
$extensionName | |
$reflectionService | |
Represents a Command
http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
Definition at line 22 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
__construct | ( | $controllerClassName, | |
$controllerCommandName | |||
) |
Constructor
string | $controllerClassName | Class name of the controller providing the command |
string | $controllerCommandName | Command name, i.e. the method name of the command, without the "Command" suffix |
\InvalidArgumentException |
Definition at line 84 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\$controllerClassName, and Command\$controllerCommandName.
getArgumentDefinitions | ( | ) |
Returns an array of that contains information about required/optional arguments of this command. If the command does not expect any arguments, an empty array is returned
Definition at line 199 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\$commandMethodReflection, Command\getCommandMethodReflection(), and Command\hasArguments().
getCommandIdentifier | ( | ) |
Returns the command identifier for this command
Definition at line 135 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\$commandIdentifier.
Referenced by CommandManager\commandMatchesIdentifier(), and CommandManager\getShortestIdentifierForCommand().
|
protected |
Definition at line 277 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\$commandMethodReflection.
Referenced by Command\getArgumentDefinitions(), Command\getDescription(), Command\getRelatedCommandIdentifiers(), Command\getShortDescription(), Command\hasArguments(), Command\isCliOnly(), Command\isFlushingCaches(), and Command\isInternal().
getControllerClassName | ( | ) |
Definition at line 117 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\$controllerClassName.
getControllerCommandName | ( | ) |
Definition at line 125 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\$controllerCommandName.
getDescription | ( | ) |
Returns a longer description of this command This is the complete method description except for the first line which can be retrieved via getShortDescription() If The command description only consists of one line, an empty string is returned
Definition at line 168 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\getCommandMethodReflection().
Referenced by Command\getShortDescription().
getExtensionName | ( | ) |
Returns the name of the extension to which this command belongs
Definition at line 145 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\$extensionName.
getRelatedCommandIdentifiers | ( | ) |
Returns an array of command identifiers which were specified in the "@see" annotation of a command method.
Definition at line 259 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\$commandMethodReflection, and Command\getCommandMethodReflection().
getShortDescription | ( | ) |
Returns a short description of this command
Definition at line 155 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\getCommandMethodReflection(), and Command\getDescription().
hasArguments | ( | ) |
Returns TRUE if this command expects required and/or optional arguments, otherwise FALSE
Definition at line 187 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\getCommandMethodReflection().
Referenced by Command\getArgumentDefinitions().
injectObjectManager | ( | \TYPO3\CMS\Extbase\Object\ObjectManagerInterface | $objectManager | ) |
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface | $objectManager |
Definition at line 64 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\$objectManager.
injectReflectionService | ( | \TYPO3\CMS\Extbase\Reflection\ReflectionService | $reflectionService | ) |
\TYPO3\CMS\Extbase\Reflection\ReflectionService | $reflectionService |
Definition at line 72 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\$reflectionService.
isCliOnly | ( | ) |
Tells if this command is meant to be used on CLI only.
Definition at line 236 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\getCommandMethodReflection().
isFlushingCaches | ( | ) |
Tells if this command flushes all caches and thus needs special attention in the interactive shell.
Note that neither this method nor the annotation is currently part of the official API.
Definition at line 248 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\getCommandMethodReflection().
isInternal | ( | ) |
Tells if this command is internal and thus should not be exposed through help texts, user documentation etc. Internall commands are still accessible through the regular command line interface, but should not be used by users.
Definition at line 226 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
References Command\getCommandMethodReflection().
|
protected |
Definition at line 42 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
Referenced by Command\getCommandIdentifier().
|
protected |
Definition at line 47 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
Referenced by Command\getArgumentDefinitions(), Command\getCommandMethodReflection(), and Command\getRelatedCommandIdentifiers().
|
protected |
Definition at line 32 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
Referenced by Command\__construct(), and Command\getControllerClassName().
|
protected |
Definition at line 37 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
Referenced by Command\__construct(), and Command\getControllerCommandName().
|
protected |
Definition at line 54 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
Referenced by Command\getExtensionName().
|
protected |
Definition at line 27 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
Referenced by Command\injectObjectManager().
|
protected |
Definition at line 59 of file typo3/sysext/extbase/Classes/Mvc/Cli/Command.php.
Referenced by Command\injectReflectionService().