TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ClassReflection Class Reference
Inheritance diagram for ClassReflection:

Public Member Functions

 getMethods ($filter=null)
 
 getMethod ($name)
 
 getConstructor ()
 
 getProperties ($filter=null)
 
 getProperty ($name)
 
 getInterfaces ()
 
 getParentClass ()
 
 isTaggedWith ($tag)
 
 getTagsValues ()
 
 getTagValues ($tag)
 

Protected Member Functions

 getDocCommentParser ()
 

Protected Attributes

 $docCommentParser
 

Detailed Description

Extended version of the ReflectionClass

Definition at line 20 of file ClassReflection.php.

Member Function Documentation

getConstructor ( )

Replacement for the original getConstructor() method which makes sure that objects are returned instead of the original ReflectionMethod instances.

Returns
MethodReflection Method reflection object of the constructor method

Definition at line 69 of file ClassReflection.php.

getDocCommentParser ( )
protected

Returns an instance of the doc comment parser and runs the parse() method.

Returns
DocCommentParser

Definition at line 179 of file ClassReflection.php.

References ClassReflection\$docCommentParser.

Referenced by ClassReflection\getTagsValues(), ClassReflection\getTagValues(), and ClassReflection\isTaggedWith().

getInterfaces ( )

Replacement for the original getInterfaces() method which makes sure that objects are returned instead of the original ReflectionClass instances.

Returns
ClassReflection[] Class reflection objects of the properties in this class

Definition at line 116 of file ClassReflection.php.

getMethod (   $name)

Replacement for the original getMethod() method which makes sure that objects are returned instead of the original ReflectionMethod instances.

Parameters
string$name
Returns
MethodReflection Method reflection object of the named method

Definition at line 53 of file ClassReflection.php.

getMethods (   $filter = null)

Replacement for the original getMethods() method which makes sure that objects are returned instead of the original ReflectionMethod instances.

Parameters
int | NULL$filterA filter mask
Returns
MethodReflection[] Method reflection objects of the methods in this class

Definition at line 35 of file ClassReflection.php.

getParentClass ( )

Replacement for the original getParentClass() method which makes sure that a object is returned instead of the original ReflectionClass instance.

Returns
ClassReflection Reflection of the parent class - if any

Definition at line 133 of file ClassReflection.php.

getProperties (   $filter = null)

Replacement for the original getProperties() method which makes sure that objects are returned instead of the original ReflectionProperty instances.

Parameters
int | NULL$filterA filter mask
Returns
PropertyReflection[] Property reflection objects of the properties in this class

Definition at line 86 of file ClassReflection.php.

getProperty (   $name)

Replacement for the original getProperty() method which makes sure that a object is returned instead of the original ReflectionProperty instance.

Parameters
string$nameName of the property
Returns
PropertyReflection Property reflection object of the specified property in this class

Definition at line 104 of file ClassReflection.php.

getTagsValues ( )

Returns an array of tags and their values

Returns
array Tags and values

Definition at line 157 of file ClassReflection.php.

References ClassReflection\getDocCommentParser().

getTagValues (   $tag)

Returns the values of the specified tag

Parameters
string$tag
Returns
array Values of the given tag

Definition at line 168 of file ClassReflection.php.

References ClassReflection\getDocCommentParser().

isTaggedWith (   $tag)

Checks if the doc comment of this method is tagged with the specified tag

Parameters
string$tagTag name to check for
Returns
bool TRUE if such a tag has been defined, otherwise FALSE

Definition at line 146 of file ClassReflection.php.

References ClassReflection\getDocCommentParser().

Member Data Documentation

$docCommentParser
protected

Definition at line 25 of file ClassReflection.php.

Referenced by ClassReflection\getDocCommentParser().