-
| $option |
A sfCommandOption object |
Add a sfCommandOption objects.
-
| $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
-
(sfCommandOption) getOption ($name)
Browse code
Returns an option by name.
returns A sfCommandOption object
-
(sfCommandOption) getOptionForShortcut ()
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
-
| $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)
Browse code
| $options |
An array of sfCommandOption objects |
Constructor.