LazyLoadingProxy implements Iterator, LoadingStrategyInterface
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.
Table of Contents
Interfaces
- Iterator
- LoadingStrategyInterface
- An interface for the lazy loading strategies.
Properties
- $dataMapper : DataMapper|null
Methods
- __call() : mixed
- Magic method call implementation.
- __construct() : mixed
- Constructs this proxy instance.
- __get() : mixed
- Magic get call implementation.
- __isset() : bool
- Magic isset call implementation.
- __serialize() : array<string|int, mixed>
- __set() : mixed
- Magic set call implementation.
- __toString() : string
- Magic toString call implementation.
- __unserialize() : void
- __unset() : mixed
- Magic unset call implementation.
- _getTypeAndUidString() : string
- _loadRealInstance() : object
- Populate this proxy by asking the $population closure.
- current() : mixed
- Returns the current value of the storage array
- getUid() : int
- key() : int
- Returns the current key storage array
- next() : mixed
- Returns the next position of the storage array
- rewind() : mixed
- Resets the array pointer of the storage
- valid() : bool
- Checks if the array pointer of the storage points to a valid position
Properties
$dataMapper
protected
DataMapper|null
$dataMapper
= null
Methods
__call()
Magic method call implementation.
public
__call(string $methodName, array<string|int, mixed> $arguments) : mixed
Parameters
- $methodName : string
-
The name of the property to get
- $arguments : array<string|int, mixed>
-
The arguments given to the call
__construct()
Constructs this proxy instance.
public
__construct(DomainObjectInterface $parentObject, string $propertyName, mixed $fieldValue[, DataMapper|null $dataMapper = null ]) : mixed
Parameters
- $parentObject : DomainObjectInterface
-
The object instance this proxy is part of
- $propertyName : string
-
The name of the proxied property in it's parent
- $fieldValue : mixed
-
The raw field value.
- $dataMapper : DataMapper|null = null
__get()
Magic get call implementation.
public
__get(string $propertyName) : mixed
Parameters
- $propertyName : string
-
The name of the property to get
__isset()
Magic isset call implementation.
public
__isset(string $propertyName) : bool
Parameters
- $propertyName : string
-
The name of the property to check
Return values
bool__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>__set()
Magic set call implementation.
public
__set(string $propertyName, mixed $value) : mixed
Parameters
- $propertyName : string
-
The name of the property to set
- $value : mixed
-
The value for the property to set
__toString()
Magic toString call implementation.
public
__toString() : string
Return values
string__unserialize()
public
__unserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
__unset()
Magic unset call implementation.
public
__unset(string $propertyName) : mixed
Parameters
- $propertyName : string
-
The name of the property to unset
_getTypeAndUidString()
public
_getTypeAndUidString() : string
Return values
string_loadRealInstance()
Populate this proxy by asking the $population closure.
public
_loadRealInstance() : object
Return values
object —The instance (hopefully) returned
current()
Returns the current value of the storage array
public
current() : mixed
Tags
Attributes
- #[ReturnTypeWillChange]
getUid()
public
getUid() : int
Return values
intkey()
Returns the current key storage array
public
key() : int
Tags
Attributes
- #[ReturnTypeWillChange]
Return values
intnext()
Returns the next position of the storage array
public
next() : mixed
Tags
Attributes
- #[ReturnTypeWillChange]
rewind()
Resets the array pointer of the storage
public
rewind() : mixed
Tags
Attributes
- #[ReturnTypeWillChange]
valid()
Checks if the array pointer of the storage points to a valid position
public
valid() : bool
Tags
Attributes
- #[ReturnTypeWillChange]