TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Reflection\ClassReflection Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Reflection\ClassReflection:
Tx_Extbase_Reflection_ClassReflection

Public Member Functions

 __construct ($className)
 
 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

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Extended version of the ReflectionClass

Definition at line 19 of file ClassReflection.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Reflection\ClassReflection::__construct (   $className)

The constructor - initializes the class

Parameters
string$classNameName of the class to reflect

Definition at line 31 of file ClassReflection.php.

Member Function Documentation

◆ getConstructor()

TYPO3\CMS\Extbase\Reflection\ClassReflection::getConstructor ( )

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

Returns
Method reflection object of the constructor method

Definition at line 75 of file ClassReflection.php.

◆ getDocCommentParser()

TYPO3\CMS\Extbase\Reflection\ClassReflection::getDocCommentParser ( )
protected

◆ getInterfaces()

TYPO3\CMS\Extbase\Reflection\ClassReflection::getInterfaces ( )

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

Returns
array of Class reflection objects of the properties in this class

Definition at line 119 of file ClassReflection.php.

◆ getMethod()

TYPO3\CMS\Extbase\Reflection\ClassReflection::getMethod (   $name)

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

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

Definition at line 60 of file ClassReflection.php.

◆ getMethods()

TYPO3\CMS\Extbase\Reflection\ClassReflection::getMethods (   $filter = NULL)

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

Parameters
integer | NULL$filterA filter mask
Returns
Method reflection objects of the methods in this class

Definition at line 43 of file ClassReflection.php.

◆ getParentClass()

TYPO3\CMS\Extbase\Reflection\ClassReflection::getParentClass ( )

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

Returns
Reflection of the parent class - if any

Definition at line 135 of file ClassReflection.php.

◆ getProperties()

TYPO3\CMS\Extbase\Reflection\ClassReflection::getProperties (   $filter = NULL)

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

Parameters
integer | NULL$filterA filter mask
Returns
array of Property reflection objects of the properties in this class

Definition at line 91 of file ClassReflection.php.

◆ getProperty()

TYPO3\CMS\Extbase\Reflection\ClassReflection::getProperty (   $name)

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

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

Definition at line 108 of file ClassReflection.php.

◆ getTagsValues()

TYPO3\CMS\Extbase\Reflection\ClassReflection::getTagsValues ( )

Returns an array of tags and their values

Returns
array Tags and values

Definition at line 157 of file ClassReflection.php.

References TYPO3\CMS\Extbase\Reflection\ClassReflection\getDocCommentParser().

◆ getTagValues()

TYPO3\CMS\Extbase\Reflection\ClassReflection::getTagValues (   $tag)

Returns the values of the specified tag

Parameters
string$tag
Returns
array Values of the given tag

Definition at line 167 of file ClassReflection.php.

References TYPO3\CMS\Extbase\Reflection\ClassReflection\getDocCommentParser().

◆ isTaggedWith()

TYPO3\CMS\Extbase\Reflection\ClassReflection::isTaggedWith (   $tag)

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

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

Definition at line 147 of file ClassReflection.php.

References $result, and TYPO3\CMS\Extbase\Reflection\ClassReflection\getDocCommentParser().

Member Data Documentation

◆ $docCommentParser

TYPO3\CMS\Extbase\Reflection\ClassReflection::$docCommentParser
protected