$definition
$definition :
ArgvInput represents an input coming from the CLI arguments.
Usage:
$input = new ArgvInput();
By default, the $_SERVER['argv']
array is used for the input values.
This can be overridden by explicitly passing the input values in the constructor:
$input = new ArgvInput($_SERVER['argv']);
If you pass it yourself, don't forget that the first element of the array is the name of the running application.
When passing an argument to the constructor, be sure that it respects
the same rules as the argv one. It's almost always better to use the
StringInput
when you want to provide your own input.
__construct( $argv = null, \app\framework\Component\Console\Input\InputDefinition $definition = null)
ArgvInput constructor.
$argv | array |
|
\app\framework\Component\Console\Input\InputDefinition | $definition |
bind(\app\framework\Component\Console\Input\InputDefinition $definition)
Binds the current Input instance with the given arguments and options.
\app\framework\Component\Console\Input\InputDefinition | $definition |
arr(array $array = array()) : \app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject
Creates an instance of Array Standard Object.
array | $array |
datetime(string|integer $time = "now", null|string $timezone = null) : \app\framework\Component\StdLib\StdObject\DateTimeObject\DateTimeObject
Create an instance of DateTime Standard Object.
string|integer | $time | A date/time string. List of available formats is explained here http://www.php.net/manual/en/datetime.formats.php |
null|string | $timezone | Timezone in which you want to set the date. Here is a list of valid timezones: http://php.net/manual/en/timezones.php |
str(string $string) : \app\framework\Component\StdLib\StdObject\StringObject\StringObject
Creates an instance of String Standard Object.
string | $string |
url(string $url) : \app\framework\Component\StdLib\StdObject\UrlObject\UrlObject
Creates an instance of Url Standard Object.
string | $url |