|
Moodle
2.2.1
http://www.collinsharper.com
|
Static Public Member Functions | |
| static & | getStaticProperty ($class, $var) |
This is only meant for PHP 5 to get rid of certain strict warning that doesn't get hidden since it's in the shutdown function
| static& getStaticProperty | ( | $ | class, |
| $ | var | ||
| ) | [static] |
If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. Eg. in your method(s) do this: $myVar = &PEAR5::getStaticProperty('myclass', 'myVar'); You MUST use a reference, or they will not persist!
public
| string | $class | The calling classname, to prevent clashes |
| string | $var | The variable to retrieve. |
Definition at line 20 of file PEAR5.php.
