PHP Dokumentation: Reflectionproperty setaccessible
12. Januar 2010 von werner
ReflectionProperty::setAccessible
(PHP 5 >= 5.3.0)
ReflectionProperty::setAccessible — Set property accessibility
Beschreibung
public void ReflectionProperty::setAccessible ( bool $accessible )
Sets a property to be accessible. For example, it may allow protected and private properties to be accessed.
Parameter-Liste
- accessible
TRUE to allow accessibility, or FALSE.
Rückgabewerte
Es wird kein Wert zurückgegeben.
Siehe auch
- ReflectionProperty::isPrivate – Checks if property is private
- ReflectionProperty::isProtected – Checks if property is protected