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).

Internal

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|null
Populate this proxy by asking the $population closure.
current()  : mixed
Returns the current value of the storage array
getUid()  : int
key()  : int|string|null
Returns the current key storage array
next()  : void
Returns the next position of the storage array
rewind()  : void
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<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|null
Return values
object|null

The instance (hopefully) returned

current()

Returns the current value of the storage array

public current() : mixed

getUid()

public getUid() : int
Return values
int

key()

Returns the current key storage array

public key() : int|string|null
Return values
int|string|null

next()

Returns the next position of the storage array

public next() : void

rewind()

Resets the array pointer of the storage

public rewind() : void

valid()

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

public valid() : bool
Return values
bool

        
On this page

Search results