TYPO3
7.6
|
Public Member Functions | |
__construct (Command $parent=null) | |
__toString () | |
add ($bit) | |
top ($bit) | |
arg ($arg) | |
cmd ($esc) | |
ins ($label) | |
get ($label) | |
end () | |
length () | |
setErrorHandler (\Closure $errorHandler) | |
getErrorHandler () | |
execute () | |
join () | |
addAtIndex ($bit, $index) | |
Static Public Member Functions | |
static | create (Command $parent=null) |
static | escape ($input) |
static | quote ($input) |
Private Attributes | |
$parent | |
$bits = array() | |
$labels = array() | |
$errorHandler | |
Definition at line 17 of file vendor/symfony/finder/Shell/Command.php.
__construct | ( | Command | $parent = null | ) |
Constructor.
Command | null | $parent | Parent command |
Definition at line 44 of file vendor/symfony/finder/Shell/Command.php.
References Command\$parent.
__toString | ( | ) |
Returns command as string.
Definition at line 54 of file vendor/symfony/finder/Shell/Command.php.
References Command\join().
add | ( | $bit | ) |
Appends a string or a Command instance.
string | Command | $bit |
Definition at line 102 of file vendor/symfony/finder/Shell/Command.php.
Referenced by BsdFindAdapter\buildContentFiltering(), GnuFindAdapter\buildContentFiltering(), AbstractFindAdapter\buildDatesFiltering(), BsdFindAdapter\buildFormatSorting(), AbstractFindAdapter\buildNamesFiltering(), AbstractFindAdapter\buildPathsFiltering(), and AbstractFindAdapter\buildSizesFiltering().
addAtIndex | ( | $bit, | |
$index | |||
) |
arg | ( | $arg | ) |
Appends an argument, will be quoted.
string | $arg |
Definition at line 134 of file vendor/symfony/finder/Shell/Command.php.
cmd | ( | $esc | ) |
Appends escaped special command chars.
string | $esc |
Definition at line 148 of file vendor/symfony/finder/Shell/Command.php.
Referenced by AbstractFindAdapter\buildNamesFiltering(), and AbstractFindAdapter\buildPathsFiltering().
|
static |
Creates a new Command instance.
Command | null | $parent | Parent command |
Definition at line 66 of file vendor/symfony/finder/Shell/Command.php.
References Command\$parent.
Referenced by AbstractFindAdapter\searchInDirectory(), CommandTest\testAdd(), CommandTest\testAddAsFirst(), CommandTest\testAddAsLast(), CommandTest\testAddInBetween(), CommandTest\testArg(), CommandTest\testCastToString(), CommandTest\testCmd(), CommandTest\testCount(), CommandTest\testCreate(), CommandTest\testEnd(), CommandTest\testEndNoParentException(), CommandTest\testErrorHandler(), CommandTest\testExecute(), CommandTest\testGetMissingLabelException(), CommandTest\testInsDuplicateLabelException(), CommandTest\testTop(), and CommandTest\testTopLabeled().
end | ( | ) |
Returns parent command (if any).
\RuntimeException | If command has no parent |
Definition at line 201 of file vendor/symfony/finder/Shell/Command.php.
References Command\$parent.
|
static |
Escapes special chars from input.
string | $input | A string to escape |
Definition at line 78 of file vendor/symfony/finder/Shell/Command.php.
execute | ( | ) |
Executes current command.
\RuntimeException |
Definition at line 247 of file vendor/symfony/finder/Shell/Command.php.
References Command\$errorHandler, and Command\join().
get | ( | $label | ) |
Retrieves a previously labeled command.
string | $label |
\RuntimeException |
Definition at line 185 of file vendor/symfony/finder/Shell/Command.php.
Referenced by GnuFindAdapter\buildFormatSorting().
getErrorHandler | ( | ) |
Definition at line 235 of file vendor/symfony/finder/Shell/Command.php.
References Command\$errorHandler.
ins | ( | $label | ) |
Inserts a labeled command to feed later.
string | $label | The unique label |
\RuntimeException | If label already exists |
Definition at line 164 of file vendor/symfony/finder/Shell/Command.php.
Referenced by AbstractFindAdapter\buildFindCommand(), GnuFindAdapter\buildFormatSorting(), and BsdFindAdapter\buildFormatSorting().
join | ( | ) |
Joins bits.
Definition at line 270 of file vendor/symfony/finder/Shell/Command.php.
References Command\$bits, and Command\join().
Referenced by ShellCommandFailureException\__construct(), Command\__toString(), Command\execute(), and Command\join().
length | ( | ) |
Counts bits stored in command.
Definition at line 215 of file vendor/symfony/finder/Shell/Command.php.
|
static |
Quotes input.
string | $input | An argument string |
Definition at line 90 of file vendor/symfony/finder/Shell/Command.php.
setErrorHandler | ( | \Closure | $errorHandler | ) |
\Closure | $errorHandler |
Definition at line 225 of file vendor/symfony/finder/Shell/Command.php.
References Command\$errorHandler.
top | ( | $bit | ) |
Prepends a string or a command instance.
string | Command | $bit |
Definition at line 116 of file vendor/symfony/finder/Shell/Command.php.
|
private |
Definition at line 27 of file vendor/symfony/finder/Shell/Command.php.
Referenced by Command\join().
|
private |
Definition at line 37 of file vendor/symfony/finder/Shell/Command.php.
Referenced by Command\execute(), Command\getErrorHandler(), and Command\setErrorHandler().
|
private |
Definition at line 32 of file vendor/symfony/finder/Shell/Command.php.
|
private |
Definition at line 22 of file vendor/symfony/finder/Shell/Command.php.
Referenced by Command\__construct(), Command\create(), and Command\end().