TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Reflection\PropertyReflection Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Reflection\PropertyReflection:

Public Member Functions

 isTaggedWith ($tag)
 
 getTagsValues ()
 
 getTagValues ($tag)
 
 getValue ($object=null)
 

Protected Member Functions

 getDocCommentParser ()
 

Protected Attributes

 $docCommentParser
 

Detailed Description

Extended version of the ReflectionProperty

Definition at line 20 of file PropertyReflection.php.

Member Function Documentation

◆ getDocCommentParser()

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

◆ getTagsValues()

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

Returns an array of tags and their values

Returns
array Tags and values

Definition at line 45 of file PropertyReflection.php.

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

◆ getTagValues()

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

Returns the values of the specified tag

Parameters
string$tag
Returns
array Values of the given tag

Definition at line 56 of file PropertyReflection.php.

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

◆ getValue()

TYPO3\CMS\Extbase\Reflection\PropertyReflection::getValue (   $object = null)

Returns the value of the reflected property - even if it is protected.

Parameters
object$objectInstance of the declaring class to read the value from
Returns
mixed Value of the property
Exceptions
Exception
Todo:
Maybe support private properties as well, as of PHP 5.3.0 we can do

Definition at line 69 of file PropertyReflection.php.

◆ isTaggedWith()

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

Checks if the doc comment of this property 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 34 of file PropertyReflection.php.

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

Member Data Documentation

◆ $docCommentParser

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