ReflectionClass::getDefaultProperties デフォルトプロパティを取得する &reftitle.description; public arrayReflectionClass::getDefaultProperties クラスのデフォルトプロパティ (継承したプロパティを含む) を取得します。 このメソッドで static プロパティを扱えるのは、内部クラスの場合だけです。 ユーザー定義クラスで使った場合は、 クラスの static なプロパティのデフォルト値はこのメソッドでは追跡できません。 &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; デフォルトプロパティの配列を返します。プロパティ名が配列のキー、 そしてそのプロパティのデフォルト値が配列の値 (デフォルト値が存在しない場合は &null;) となります。 この関数はstaticプロパティとそうでないプロパティを区別せず、 アクセス修飾子も考慮しません。 &reftitle.examples; <methodname>ReflectionClass::getDefaultProperties</methodname> の例 getDefaultProperties()); ?> ]]> &example.outputs; string(14) "staticProperty" ["property"]=> string(15) "propertyDefault" ["privateProperty"]=> string(22) "privatePropertyDefault" ["defaultlessProperty"]=> NULL ["inheritedProperty"]=> string(16) "inheritedDefault" } ]]> &reftitle.seealso; ReflectionClass::getProperties ReflectionClass::getStaticProperties ReflectionClass::getProperty