TYPO3
7.6
|
Protected Member Functions | |
initialize () | |
isStorageAlreadyMemorizedInParentCleanState () | |
Protected Attributes | |
$dataMapper | |
$parentObject | |
$propertyName | |
$fieldValue | |
$isInitialized = false | |
Protected Attributes inherited from ObjectStorage | |
$storage = array() | |
$isModified = false | |
$addedObjectsPositions = array() | |
$removedObjectsPositions = array() | |
$positionCounter = 0 | |
Private Attributes | |
$warning = 'You should never see this warning. If you do, you probably used PHP array functions like current() on the TYPO3\\CMS\\Extbase\\Persistence\\Generic\\LazyObjectStorage. To retrieve the first result, you can use the rewind() and current() methods.' | |
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 LazyObjectStorage.php.
__construct | ( | $parentObject, | |
$propertyName, | |||
$fieldValue | |||
) |
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. |
Definition at line 91 of file LazyObjectStorage.php.
References LazyObjectStorage\$fieldValue, LazyObjectStorage\$parentObject, and LazyObjectStorage\$propertyName.
addAll | ( | \TYPO3\CMS\Extbase\Persistence\ObjectStorage | $storage | ) |
\TYPO3\CMS\Extbase\Persistence\ObjectStorage | $storage |
Definition at line 133 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
attach | ( | $object, | |
$data = null |
|||
) |
object | $object | The object to add. |
mixed | $data | The data to associate with the object. |
Definition at line 145 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
contains | ( | $object | ) |
object | $object | The object to look for. |
Definition at line 157 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
count | ( | ) |
Counts the elements in the storage array
Exception |
Definition at line 169 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize(), and LazyObjectStorage\isInitialized().
current | ( | ) |
Definition at line 190 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
detach | ( | $object | ) |
object | $object | The object to remove. |
Definition at line 201 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
getPosition | ( | $object | ) |
mixed | $object |
Definition at line 322 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
|
protected |
This is a function lazy load implementation.
Definition at line 104 of file LazyObjectStorage.php.
References ObjectStorage\_memorizeCleanState(), LazyObjectStorage\isInitialized(), and LazyObjectStorage\isStorageAlreadyMemorizedInParentCleanState().
Referenced by LazyObjectStorage\addAll(), LazyObjectStorage\attach(), LazyObjectStorage\contains(), LazyObjectStorage\count(), LazyObjectStorage\current(), LazyObjectStorage\detach(), LazyObjectStorage\getPosition(), LazyObjectStorage\key(), LazyObjectStorage\next(), LazyObjectStorage\offsetExists(), LazyObjectStorage\offsetGet(), LazyObjectStorage\offsetSet(), LazyObjectStorage\offsetUnset(), LazyObjectStorage\removeAll(), LazyObjectStorage\rewind(), LazyObjectStorage\toArray(), and LazyObjectStorage\valid().
injectDataMapper | ( | \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper | $dataMapper | ) |
\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper | $dataMapper |
Definition at line 69 of file LazyObjectStorage.php.
References LazyObjectStorage\$dataMapper.
isInitialized | ( | ) |
Returns the state of the initialization
Definition at line 79 of file LazyObjectStorage.php.
References LazyObjectStorage\$isInitialized.
Referenced by LazyObjectStorage\count(), and LazyObjectStorage\initialize().
|
protected |
Definition at line 122 of file LazyObjectStorage.php.
Referenced by LazyObjectStorage\initialize().
key | ( | ) |
Definition at line 212 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
next | ( | ) |
Definition at line 221 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
offsetExists | ( | $object | ) |
object | $object | The object to look for. |
Definition at line 233 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
offsetGet | ( | $object | ) |
object | $object | The object to look for. |
Definition at line 245 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
offsetSet | ( | $object, | |
$info | |||
) |
object | $object | The object to add. |
mixed | $info | The data to associate with the object. |
Definition at line 257 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
offsetUnset | ( | $object | ) |
object | $object | The object to remove. |
Definition at line 269 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
removeAll | ( | \TYPO3\CMS\Extbase\Persistence\ObjectStorage | $storage | ) |
\TYPO3\CMS\Extbase\Persistence\ObjectStorage | $storage | The storage containing the elements to remove. |
Definition at line 281 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
rewind | ( | ) |
Definition at line 290 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
toArray | ( | ) |
Definition at line 312 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
valid | ( | ) |
Definition at line 301 of file LazyObjectStorage.php.
References LazyObjectStorage\initialize().
|
protected |
Definition at line 38 of file LazyObjectStorage.php.
Referenced by LazyObjectStorage\injectDataMapper().
|
protected |
Definition at line 59 of file LazyObjectStorage.php.
Referenced by LazyObjectStorage\__construct().
|
protected |
Definition at line 64 of file LazyObjectStorage.php.
Referenced by LazyObjectStorage\isInitialized().
|
protected |
Definition at line 45 of file LazyObjectStorage.php.
Referenced by LazyObjectStorage\__construct().
|
protected |
Definition at line 52 of file LazyObjectStorage.php.
Referenced by LazyObjectStorage\__construct().
|
private |
Definition at line 33 of file LazyObjectStorage.php.