TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Reflection\PropertyReflection Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Reflection\PropertyReflection:
Tx_Extbase_Reflection_PropertyReflection

Public Member Functions

 __construct ($className, $propertyName)
 
 isTaggedWith ($tag)
 
 getTagsValues ()
 
 getTagValues ($tag)
 
 getValue ($object=NULL)
 

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 ReflectionProperty

Definition at line 19 of file PropertyReflection.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Reflection\PropertyReflection::__construct (   $className,
  $propertyName 
)

The constructor, initializes the reflection class

Parameters
string$classNameName of the property's class
string$propertyNameName of the property to reflect

Definition at line 32 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 53 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 63 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

Definition at line 75 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
boolean TRUE if such a tag has been defined, otherwise FALSE

Definition at line 43 of file PropertyReflection.php.

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

Member Data Documentation

◆ $docCommentParser

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