PHP Reflectionobject Class

Source: Internet
Author: User
The Reflectionobject class in PHP is used to detect the information of a specified class

The class receives a parameter, either a class object to detect the class, or a string variable that specifies a class object

The definition of this class:

Reflectionobject extends Reflectionclass implements Reflector {

/* 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)


  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.