TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
PropertyReflection Class Reference
Inheritance diagram for 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 ( )
protected

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

Returns
DocCommentParser

Definition at line 90 of file PropertyReflection.php.

References PropertyReflection\$docCommentParser.

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

getTagsValues ( )

Returns an array of tags and their values

Returns
array Tags and values

Definition at line 45 of file PropertyReflection.php.

References PropertyReflection\getDocCommentParser().

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 PropertyReflection\getDocCommentParser().

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 (   $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 PropertyReflection\getDocCommentParser().

Member Data Documentation

$docCommentParser
protected

Definition at line 25 of file PropertyReflection.php.

Referenced by PropertyReflection\getDocCommentParser().