ReflectionClass::getReflectionConstants
Sınıf sabitlerini döndürür
&reftitle.description;
public arrayReflectionClass::getReflectionConstants
intnullfilter&null;
Yansıtılan sabitleri döndürür.
&reftitle.parameters;
filter
Seçimlik düzgeç. İstenen sabitin görünürlüklerini süzmek için.
ReflectionClassConstant sabitleri kullanılarak yapılandırılır ve
tüm sabit görünürlükleri öntanımlanır.
&reftitle.returnvalues;
ReflectionClassConstant nesnelerini içeren bir dizi
döner.
&reftitle.changelog;
&Version;
&Description;
8.0.0
filter eklendi.
&reftitle.examples;
- Temel ReflectionClass::getReflectionConstants örneği
getReflectionConstants();
foreach ($consts as $const) {
print $const->getName() . "\n";
}
var_dump($consts);
?>
]]>
&example.outputs.similar;
object(ReflectionClassConstant)#3 (2) {
["name"]=>
string(3) "FOO"
["class"]=>
string(3) "Foo"
}
[1]=>
object(ReflectionClassConstant)#4 (2) {
["name"]=>
string(3) "BAR"
["class"]=>
string(3) "Foo"
}
[2]=>
object(ReflectionClassConstant)#5 (2) {
["name"]=>
string(3) "BAZ"
["class"]=>
string(3) "Foo"
}
}
]]>
&reftitle.seealso;
ReflectionClass::getReflectionConstant
ReflectionClassConstant