|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($options=null) | |
| setOptions (array $options) | |
| setDefaultValue ($defaultValue) | |
| getDefaultValue () | |
| setDescription ($description) | |
| getDescription () | |
| setName ($name) | |
| getName () | |
| setOptional ($flag) | |
| isOptional () | |
| setType ($type) | |
| getType () | |
| toArray () | |
Protected Attributes | |
| $_defaultValue | |
| $_description = '' | |
| $_name | |
| $_optional = false | |
| $_type = 'mixed' | |
Definition at line 32 of file Parameter.php.
| __construct | ( | $ | options = null | ) |
Constructor
| null | array | $options |
Definition at line 65 of file Parameter.php.

| getDefaultValue | ( | ) |
Retrieve default value
Definition at line 106 of file Parameter.php.

| getDescription | ( | ) |
Retrieve description
Definition at line 128 of file Parameter.php.

| getName | ( | ) |
Retrieve name
Definition at line 150 of file Parameter.php.

| getType | ( | ) |
Retrieve parameter type
Definition at line 194 of file Parameter.php.

| isOptional | ( | ) |
Is the parameter optional?
Definition at line 172 of file Parameter.php.

| setDefaultValue | ( | $ | defaultValue | ) |
Set default value
| mixed | $defaultValue |
Definition at line 95 of file Parameter.php.
| setDescription | ( | $ | description | ) |
Set description
| string | $description |
Definition at line 117 of file Parameter.php.
| setName | ( | $ | name | ) |
Set name
| string | $name |
Definition at line 139 of file Parameter.php.
| setOptional | ( | $ | flag | ) |
Set optional flag
| bool | $flag |
Definition at line 161 of file Parameter.php.
| setOptions | ( | array $ | options | ) |
Set object state from array of options
| array | $options |
Definition at line 78 of file Parameter.php.

| setType | ( | $ | type | ) |
Set parameter type
| string | $type |
Definition at line 183 of file Parameter.php.
| toArray | ( | ) |
Cast to array
Definition at line 204 of file Parameter.php.

$_defaultValue [protected] |
Definition at line 37 of file Parameter.php.
$_description = '' [protected] |
Definition at line 42 of file Parameter.php.
$_name [protected] |
Definition at line 47 of file Parameter.php.
$_optional = false [protected] |
Definition at line 52 of file Parameter.php.
$_type = 'mixed' [protected] |
Definition at line 57 of file Parameter.php.