|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| register ($name, &$ref) | |
| & | get ($name, $ignore_error=false) |
| destroy ($name) | |
| exists ($name) | |
| loadArray ($context_array) | |
Registry object that contains information about the current context.
Definition at line 10 of file Context.php.
| destroy | ( | $ | name | ) |
Destorys a variable in the context.
| $name | String name |
Definition at line 53 of file Context.php.
| exists | ( | $ | name | ) |
Checks whether or not the variable exists.
| $name | String name |
Definition at line 66 of file Context.php.
| & get | ( | $ | name, |
| $ | ignore_error = false |
||
| ) |
Retrieves a variable reference from the context.
| $name | String name |
| $ignore_error | Boolean whether or not to ignore error |
Definition at line 37 of file Context.php.
| loadArray | ( | $ | context_array | ) |
Loads a series of variables from an associative array
| $context_array | Assoc array of variables to load |
Definition at line 74 of file Context.php.
| register | ( | $ | name, |
| &$ | ref | ||
| ) |
Registers a variable into the context.
| $name | String name |
| $ref | Reference to variable to be registered |
Definition at line 23 of file Context.php.