apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: PEAR5

Source Location: /PEAR-1.9.4/PEAR5.php

Class Overview


This is only meant for PHP 5 to get rid of certain strict warning


Methods


Inherited Variables

Inherited Methods


Class Details

[line 6]
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



[ Top ]


Method Detail

getStaticProperty   [line 20]

mixed &getStaticProperty( string $class, string $var)

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!

  • Return: A reference to the variable. If not set it will be auto initialised to NULL.
  • Access: public

Parameters:

string   $class     The calling classname, to prevent clashes
string   $var     The variable to retrieve.

[ Top ]


Documentation generated on Wed, 06 Jul 2011 23:31:05 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.