Moodle  2.2.1
http://www.collinsharper.com
PEAR5 Class Reference

Static Public Member Functions

static & getStaticProperty ($class, $var)

Detailed Description

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

Definition at line 6 of file PEAR5.php.


Member Function Documentation

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

Parameters:
string$classThe calling classname, to prevent clashes
string$varThe variable to retrieve.
Returns:
mixed A reference to the variable. If not set it will be auto initialised to NULL.

Definition at line 20 of file PEAR5.php.

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations