XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Static Public Member Functions | List of all members
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& PEAR5::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.


The documentation for this class was generated from the following file: