‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy:

Public Member Functions

 __construct ($parentObject, $propertyName, $fieldValue, ?DataMapper $dataMapper=null)
object _loadRealInstance ()
string _getTypeAndUidString ()
int getUid ()
mixed __call ($methodName, $arguments)
mixed __get ($propertyName)
 __set ($propertyName, $value)
bool __isset ($propertyName)
 __unset ($propertyName)
string __toString ()
mixed current ()
int key ()
 next ()
 rewind ()
bool valid ()
 __serialize ()
 __unserialize (array $data)

Protected Attributes

DataMapper $dataMapper = null

Private Attributes

DomainObjectInterface $parentObject
string $propertyName
mixed $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).

only to be used within Extbase, not part of TYPO3 Core API.

Definition at line 28 of file LazyLoadingProxy.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::__construct (   $parentObject,
?DataMapper  $dataMapper = null 

Constructs this proxy instance.

DomainObjectInterface$parentObject‪The object instance this proxy is part of
string$propertyName‪The name of the proxied property in it's parent
mixed$fieldValue‪The raw field value.
DataMapper | null$dataMapper

Definition at line 58 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\$dataMapper, 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()

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

Magic method call implementation.

string$methodName‪The name of the property to get
array$arguments‪The arguments given to the call

Definition at line 116 of file LazyLoadingProxy.php.

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

◆ __get()

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

Magic get call implementation.

string$propertyName‪The name of the property to get

Definition at line 133 of file LazyLoadingProxy.php.

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

◆ __isset()

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

Magic isset call implementation.

string$propertyName‪The name of the property to check

Definition at line 161 of file LazyLoadingProxy.php.

◆ __serialize()

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

Definition at line 252 of file LazyLoadingProxy.php.

◆ __set()

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

Magic set call implementation.

string$propertyName‪The name of the property to set
mixed$value‪The value for the property to set

Definition at line 149 of file LazyLoadingProxy.php.

◆ __toString()

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

Magic toString call implementation.


Definition at line 183 of file LazyLoadingProxy.php.

◆ __unserialize()

TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::__unserialize ( array  $data)

Definition at line 259 of file LazyLoadingProxy.php.

◆ __unset()

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

Magic unset call implementation.

string$propertyName‪The name of the property to unset

Definition at line 172 of file LazyLoadingProxy.php.

◆ _getTypeAndUidString()

string TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::_getTypeAndUidString ( )

Definition at line 95 of file LazyLoadingProxy.php.

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

◆ _loadRealInstance()

object TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::_loadRealInstance ( )

Populate this proxy by asking the $population closure.

‪object The instance (hopefully) returned

Definition at line 74 of file LazyLoadingProxy.php.

References TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject\_getProperty().

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\__call(), and TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\__get().

◆ current()

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

Returns the current value of the storage array

‪Set return type to mixed as breaking change in v12 and remove #[\ReturnTypeWillChange].

Definition at line 196 of file LazyLoadingProxy.php.

◆ getUid()

int TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::getUid ( )

◆ key()

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

Returns the current key storage array

‪Set return type to int as breaking change in v12 and remove #[\ReturnTypeWillChange].

Definition at line 209 of file LazyLoadingProxy.php.

◆ next()

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

Returns the next position of the storage array

‪Set return type to void as breaking change in v12 and remove #[\ReturnTypeWillChange].

Definition at line 221 of file LazyLoadingProxy.php.

◆ rewind()

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

Resets the array pointer of the storage

‪Set return type to void as breaking change in v12 and remove #[\ReturnTypeWillChange].

Definition at line 233 of file LazyLoadingProxy.php.

◆ valid()

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

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

‪Set return type to bool as breaking change in v12 and remove #[\ReturnTypeWillChange].

Definition at line 247 of file LazyLoadingProxy.php.

Member Data Documentation

◆ $dataMapper

DataMapper TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::$dataMapper = null

◆ $fieldValue

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

◆ $parentObject

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

The object this property is contained in.

Definition at line 36 of file LazyLoadingProxy.php.

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

◆ $propertyName

string TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy::$propertyName

The name of the property represented by this proxy.

Definition at line 42 of file LazyLoadingProxy.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\__construct(), and TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy\__get().