Comunitatea PHP Romania
 

 
PEAR::getStaticProperty()

PEAR::getStaticProperty()

PEAR::getStaticProperty() -- handle static properties (package developer related)

Description

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');
You must use a reference, or they will not persist!

Parameter

  • string $class - the name of your class, where you call getStaticProperty()

  • string $var the variable to retrieve.

Return value

mixed - A reference to the variable. If not set, it will be auto initialised to NULL.

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Top membri

Pirahna Pirahna
la birou
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
Mascka Mascka
Braila
raul_ raul_
whooper whooper
Toronto ON
mihaitha mihaitha
Sibiu
gabysolomon gabysolomon
Bacau
oriceon oriceon
Constanta
garlicinicolae garlicinicolae

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink MPAA | Money | Ringtones | Codigo da vinci | Loans
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis