-
| $option |
A sfCommandOption object
|
Add a sfCommandOption objects.
-
addOptions ($options = array())
Browse code
| $options |
An array of sfCommandOption objects
|
Add an array of sfCommandOption objects.
-
(array) getDefaults ()
Browse code
Gets an array of default values.
returns An array of all default values
-
Returns an option by name.
returns A sfCommandOption object
-
getOptionForShortcut ($shortcut)
Browse code
Gets an option by shortcut.
returns A sfCommandOption object
-
Gets the array of sfCommandOption objects.
returns An array of sfCommandOption objects
-
(Boolean) hasOption ($name)
Browse code
Returns true if an option object exists by name.
returns true if the option object exists, false otherwise
-
(Boolean) hasShortcut ($name)
Browse code
| $name |
The option shortcut
|
Returns true if an option object exists by shortcut.
returns true if the option object exists, false otherwise
-
setOptions ($options = array())
Browse code
| $options |
An array of sfCommandOption objects
|
Sets the sfCommandOption objects.
-
(string) shortcutToName ($shortcut)
Browse code
Returns the option name given a shortcut.
returns The option name
-
__construct ($options = array())
Browse code
| $options |
An array of sfCommandOption objects
|
Constructor.