TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy:
TYPO3\CMS\Extbase\Persistence\Generic\LoadingStrategyInterface

Public Member Functions

 injectDataMapper (\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper $dataMapper)
 
 __construct ($parentObject, $propertyName, $fieldValue)
 
 _loadRealInstance ()
 
 __call ($methodName, $arguments)
 
 __get ($propertyName)
 
 __set ($propertyName, $value)
 
 __isset ($propertyName)
 
 __unset ($propertyName)
 
 __toString ()
 
 current ()
 
 key ()
 
 next ()
 
 rewind ()
 
 valid ()
 

Protected Attributes

 $dataMapper
 

Private Attributes

 $parentObject
 
 $propertyName
 
 $fieldValue
 

Detailed Description

A proxy that can replace any object and replaces itself in it's parent on first access (call, get, set, isset, unset).

Definition at line 23 of file LazyLoadingProxy.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::__construct (   $parentObject,
  $propertyName,
  $fieldValue 
)

Constructs this proxy instance.

Parameters
DomainObjectInterface$parentObjectThe object instance this proxy is part of
string$propertyNameThe name of the proxied property in it's parent
mixed$fieldValueThe raw field value.

Definition at line 66 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\$fieldValue, TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\$parentObject, and TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\$propertyName.

Member Function Documentation

◆ __call()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::__call (   $methodName,
  $arguments 
)

Magic method call implementation.

Parameters
string$methodNameThe name of the property to get
array$argumentsThe arguments given to the call
Returns
mixed

Definition at line 101 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\_loadRealInstance().

◆ __get()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::__get (   $propertyName)

Magic get call implementation.

Parameters
string$propertyNameThe name of the property to get
Returns
mixed

Definition at line 116 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\$propertyName, and TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\_loadRealInstance().

◆ __isset()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::__isset (   $propertyName)

Magic isset call implementation.

Parameters
string$propertyNameThe name of the property to check
Returns
bool

Definition at line 141 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\$propertyName, and TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\_loadRealInstance().

◆ __set()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::__set (   $propertyName,
  $value 
)

Magic set call implementation.

Parameters
string$propertyNameThe name of the property to set
mixed$valueThe value for the property to set
Returns
void

Definition at line 129 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\$propertyName, and TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\_loadRealInstance().

◆ __toString()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::__toString ( )

Magic toString call implementation.

Returns
string

Definition at line 164 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\_loadRealInstance().

◆ __unset()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::__unset (   $propertyName)

Magic unset call implementation.

Parameters
string$propertyNameThe name of the property to unset
Returns
void

Definition at line 153 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\$propertyName, and TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\_loadRealInstance().

◆ _loadRealInstance()

◆ current()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::current ( )

Returns the current value of the storage array

Returns
mixed

Definition at line 175 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\_loadRealInstance().

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\valid().

◆ injectDataMapper()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::injectDataMapper ( \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper  $dataMapper)
Parameters
\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper$dataMapper

Definition at line 54 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\$dataMapper.

◆ key()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::key ( )

Returns the current key storage array

Returns
int

Definition at line 186 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\_loadRealInstance().

◆ next()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::next ( )

Returns the next position of the storage array

Returns
void

Definition at line 197 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\_loadRealInstance().

◆ rewind()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::rewind ( )

Resets the array pointer of the storage

Returns
void

Definition at line 208 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\_loadRealInstance().

◆ valid()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::valid ( )

Checks if the array pointer of the storage points to a valid position

Returns
bool

Definition at line 219 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\current().

Member Data Documentation

◆ $dataMapper

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::$dataMapper
protected

◆ $fieldValue

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::$fieldValue
private

◆ $parentObject

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::$parentObject
private

◆ $propertyName