The reflectionobject class in PHP is used to detect information of a specified class.
This class receives a parameter, which can be a class object to detect the class, or a string variable that specifies a Class Object
Definition of this class:
Reflectionobject ExtendsReflectionclassImplementsReflector { /* Constants */ Const Integer Is_implicit_abstract = 16; Const Integer Is_explicit_abstract = 32; Const Integer Is_final = 64; /* Properties */ /* Methods */ Public _ Construct(Object $ Argument) Public Static String Export(String $ Argument[,Bool $ Return]) /* Inherited methods */ Final Private Void Reflectionclass ::__ clone(Void) Reflectionclass ::__ construct(Mixed $ Argument) Public Static String Reflectionclass: Export(Mixed $ Argument[,Bool $ Return= False]) Public Mixed Reflectionclass: getconstant(String $ Name) Public Array Reflectionclass: getconstants(Void) Public Object Reflectionclass: getconstructor(Void) Public Array Reflectionclass: getdefaultproperties(Void) Public String Reflectionclass: getdoccomment(Void) Public Int Reflectionclass: getendline(Void) Public Reflectionextension Reflectionclass: getextension(Void) Public String Reflectionclass: getextensionname(Void) Public String Reflectionclass: getfilename(Void) Public Array Reflectionclass: getinterfacenames(Void) Public Array Reflectionclass: getinterfaces(Void) Public Reflectionmethod Reflectionclass: getmethod(String $ Name) Public Array Reflectionclass: getmethods([String $ Filter]) Public Int Reflectionclass: getmodifiers(Void) Public String Reflectionclass: getname(Void) Public String Reflectionclass: getnamespacename(Void) Public Object Reflectionclass: getparentclass(Void) Public Array Reflectionclass: getproperties([Int $ Filter]) Public Reflectionproperty Reflectionclass: getproperty(String $ Name) Public String Reflectionclass: getshortname(Void) Public Int Reflectionclass: getstartline(Void) Public Array Reflectionclass: getstaticproperties(Void) Public Mixed Reflectionclass: getstaticpropertyvalue(String $ Name[,String $ Default]) Public Array Reflectionclass: gettraitaliases(Void) Public Array Reflectionclass: gettraitnames(Void) Public Array Reflectionclass: gettraits(Void) Public Bool Reflectionclass: hasconstant(String $ Name) Public Bool Reflectionclass: hasmethod(String $ Name) Public Bool Reflectionclass: hasproperty(String $ Name) Public Bool Reflectionclass: implementsinterface(String $ Interface) Public Bool Reflectionclass: innamespace(Void) Public Bool Reflectionclass: isabstract(Void) Public Bool Reflectionclass: iscloneable(Void) Public Bool Reflectionclass: isfinal(Void) Public Bool Reflectionclass: isinstance(Object $ Object) Public Bool Reflectionclass: isinstantiable(Void) Public Bool Reflectionclass: isinterface(Void) Public Bool Reflectionclass: isinternal(Void) Public Bool Reflectionclass: isiterateable(Void) Public Bool Reflectionclass: issubclassof(String $ Class) Public Bool Reflectionclass: istrait(Void) Public Bool Reflectionclass: isuserdefined(Void) Public Object Reflectionclass: newinstance(Mixed $ ARGs[,Mixed $...]) Public Object Reflectionclass: newinstanceargs([Array $ ARGs]) Public Object Reflectionclass: newinstancewithoutconstructor(Void) Public Void Reflectionclass: setstaticpropertyvalue(String $ Name,String $ Value) Public String Reflectionclass ::__ tostring(Void)
}
|