class Command
__construct(Command $parent = null) Constructor. | ||
string | __toString() Returns command as string. | |
static Command | create(Command $parent = null) Creates a new Command instance. | |
static string | escape(string $input) Escapes special chars from input. | |
static string | quote(string $input) Quotes input. | |
Command | add(string|Command $bit) Appends a string or a Command instance. | |
Command | top(string|Command $bit) Prepends a string or a command instance. | |
Command | arg(string $arg) Appends an argument, will be quoted. | |
Command | cmd(string $esc) Appends escaped special command chars. | |
Command | ins(string $label) Inserts a labeled command to feed later. | |
Command | get(string $label) Retrieves a previously labeled command. | |
Command | end() Returns parent command (if any). | |
int | length() Counts bits stored in command. | |
Command | setErrorHandler(Closure $errorHandler) | |
Closure|null | getErrorHandler() | |
array | execute() Executes current command. | |
string | join() Joins bits. | |
Command | addAtIndex(string|Command $bit, int $index) Insert a string or a Command instance before the bit at given position $index (index starts from 0). |
Constructor.
Returns command as string.
Creates a new Command instance.
Escapes special chars from input.
Quotes input.
Appends a string or a Command instance.
Prepends a string or a command instance.
Appends an argument, will be quoted.
Appends escaped special command chars.
Inserts a labeled command to feed later.
Retrieves a previously labeled command.
Returns parent command (if any).
Counts bits stored in command.
Executes current command.
Joins bits.
Insert a string or a Command instance before the bit at given position $index (index starts from 0).
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Finder/Shell/Command.html