(no description)
File Size: | 33 lines (1 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
PEAR5:: (1 method):
getStaticProperty()
getStaticProperty($class, $var) X-Ref |
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! param: string $class The calling classname, to prevent clashes param: string $var The variable to retrieve. return: mixed A reference to the variable. If not set it will be |