PEAR::_PEAR() (Previous) (Next) PEAR::registerShutdownFunc()

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

PEAR::getStaticProperty()

PEAR::getStaticProperty() -- handeld met statische properties (Bedoeld voor pakket ontwikkelaars.)

Beschrijving

Als je een class hebt die gedeeltelijk/helemaal statisch is, en je wil statische properties, kan je deze methode gebruiken om dat te simuleren. b.v. in je methode(s) doe je dit:


<?php
$myVar = &PEAR::getStaticProperty('myVar');
?>

je moet gebruik maken van een reference, anders zullen ze niet blijven bestaan!

Parameter

  • string $class - De naam van je class, waar je getStaticProperty() op hebt geroepen

  • string $var De variable op te halen.

Return waarde

mixed - Een reference naar de variable. Als deze leeg is, zal hij automatisch NULL worden.

PEAR::_PEAR() (Previous) (Next) PEAR::registerShutdownFunc()

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.