PEAR-Handbuch | ||
---|---|---|
Zurück | Nach vorne |
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 = &PEAR::getStaticProperty('myVar'); |
string $class - the name of your class, where you call getStaticProperty()
string $var the variable to retrieve.
Beispiel 27-1. Using getStaticProperty()
This would print
|
Zurück | Zum Anfang | Nach vorne |
PEAR::_PEAR() | Nach oben | PEAR::registerShutdownFunc() |