CriticalI_OptionsImplements interfaces:
Processes command line options.
Once options have been processed, the CriticalI_Options object can be treated as an array. Treating it as a numerically indexed list allows access to all options passed on the command line when an option is specified more than once. It can also be treated as an associative array with the option names as keys.
Located in /Core/lib/CriticalI/Options.php (line 55)
Constructor __construct (line 70)
Constructor
The option specification is a list of CriticalI_OptionSpec objects.
arguments (line 89)
Return the arguments that remain after processing
find_option_spec (line 299)
Located the option spec for a named option
getIterator (line 97)
Return an iterator for the options list
is_next_option (line 209)
Peeks at the next argument to see if it is an option
offsetExists (line 106)
Tests for existence of an array index
offsetGet (line 122)
Retrieves the value at an array index. A numeric index returns a CriticalI_Option, a non-numeric index returns only the argument for the option.
offsetSet (line 136)
Sets the value at an array index
offsetUnset (line 162)
Deletes an entry at an array index
options_hash (line 181)
Provides internal access to the options hash
parse_option (line 220)
Parses an option
parse_option_optional_arg (line 268)
Handle an option which may take an optional argument
parse_option_prohibited_arg (line 286)
Handle an option which may not have an argument
parse_option_required_arg (line 250)
Handle an option which requires an argument
process_arguments (line 196)
Process the arguments
script_name (line 82)
Return the script name
Documentation generated on Wed, 25 Apr 2012 09:46:43 -0700 by phpDocumentor 1.4.3