| [ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 207 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
ArrayInput:: (9 methods):
__construct()
getFirstArgument()
hasParameterOption()
getParameterOption()
__toString()
parse()
addShortOption()
addLongOption()
addArgument()
Class: ArrayInput - X-Ref
ArrayInput represents an input provided as an array.| __construct(array $parameters, InputDefinition $definition = null) X-Ref |
| Constructor. param: array $parameters An array of parameters param: InputDefinition $definition A InputDefinition instance |
| getFirstArgument() X-Ref |
| Returns the first argument from the raw parameters (not parsed). return: string The value of the first argument or null otherwise |
| hasParameterOption($values) X-Ref |
| Returns true if the raw parameters (not parsed) contain a value. This method is to be used to introspect the input parameters before they have been validated. It must be used carefully. param: string|array $values The values to look for in the raw parameters (can be an array) return: bool true if the value is contained in the raw parameters |
| getParameterOption($values, $default = false) X-Ref |
| Returns the value of a raw option (not parsed). This method is to be used to introspect the input parameters before they have been validated. It must be used carefully. param: string|array $values The value(s) to look for in the raw parameters (can be an array) param: mixed $default The default value to return if no result is found return: mixed The option value |
| __toString() X-Ref |
| Returns a stringified representation of the args passed to the command. return: string |
| parse() X-Ref |
| Processes command line arguments. |
| addShortOption($shortcut, $value) X-Ref |
| Adds a short option value. param: string $shortcut The short option key param: mixed $value The value for the option |
| addLongOption($name, $value) X-Ref |
| Adds a long option value. param: string $name The long option key param: mixed $value The value for the option |
| addArgument($name, $value) X-Ref |
| Adds an argument value. param: string $name The argument name param: mixed $value The value for the argument |
| Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |