LazyLoadingProxy

class \TYPO3\CMS\Extbase\Persistence\Generic\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).

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
__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

Methods

__call()

Magic method call implementation.

public __call(string $methodName, array $arguments) : mixed

Parameters

$methodName : string

The name of the property to get

$arguments : array

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

Return values

array

__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 $data) : void

Parameters

$data : array

__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

todo

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

Attributes

#[ReturnTypeWillChange]

getUid()

public getUid() : int

Return values

int

key()

Returns the current key storage array

public key() : int

Tags

todo

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

Attributes

#[ReturnTypeWillChange]

Return values

int

next()

Returns the next position of the storage array

public next() : mixed

Tags

todo

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

Attributes

#[ReturnTypeWillChange]

rewind()

Resets the array pointer of the storage

public rewind() : mixed

Tags

todo

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

Attributes

#[ReturnTypeWillChange]

valid()

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

public valid() : bool

Tags

todo

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

Attributes

#[ReturnTypeWillChange]

Return values

bool
On this page