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

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

PEAR::getStaticProperty()

PEAR::getStaticProperty() -- Maneja propiedades estáticas (package developer related)

Descripción

Si tienes una clase que es mayor/completamente estática, y necesitas propiedades estáticas, puedes usar este método para simularlas. Pe. en tu(s) método(s) haz esto:


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

Debes emplear una referencia, o no persistirá

Parámetro

  • string $class - el nombre de tu clase, donde llamas getStaticProperty()

  • string $var variable a devolver.

Valor devuelto

mixed - Una referencia a la variable. Si no se fija, será auto inicializada a NULL.

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

Download Documentation Last updated: Sun, 01 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.