downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ReflectionClass::hasConstant> <ReflectionClass::getStaticProperties
Last updated: Fri, 20 May 2011

view this page in

ReflectionClass::getStaticPropertyValue

(PHP 5 >= 5.1.0)

ReflectionClass::getStaticPropertyValueGets static property value

Descripción

public mixed ReflectionClass::getStaticPropertyValue ( string $name [, string $default ] )

Gets the static property values.

Warning

Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.

Parámetros

name

default

Valores devueltos

Ver también



add a note add a note User Contributed Notes ReflectionClass::getStaticPropertyValue
Mauro Gabriel Titimoli 21-Jan-2010 08:05
If you want to change a static property of a variable class...

PHP 5.2
<?php
$reflection
= new ReflectionClass($className);
$staticPropertyReference = & $reflection->getStaticPropertyValue($staticPropertyName);

$staticPropertyReference = 'new value';
?>

PHP 5.3
<?php
$className
::$$classProperty
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites