PHP 클래스 Neos\Flow\ObjectManagement\ObjectSerializer

Dependant objects are only included if they are not singleton and the property is not annotated transient. Afterwards it can reconstitute the objects from the array.
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface The object manager
$objectReferences SplObjectStorage
$objectsAsArray array Objects stored as an array of properties
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface The persistence manager
$reconstitutedObjects array
$reflectionService Neos\Flow\Reflection\ReflectionService The reflection service

공개 메소드들

메소드 설명
clearState ( ) : void Clears the internal state, discarding all stored objects.
deserializeObjectsArray ( array $dataArray ) : array Deserializes a given object tree and reinjects all dependencies.
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void Injects the object manager
injectPersistenceManager ( Neos\Flow\Persistence\PersistenceManagerInterface $persistenceManager ) : void Inject the persistence manager
injectReflectionService ( ReflectionService $reflectionService ) : void Injects the reflection service
serializeObjectAsPropertyArray ( object $object, boolean $isTopLevelItem = true ) : array Serializes an object as property array.

보호된 메소드들

메소드 설명
buildStorageArrayForArrayProperty ( array $arrayProperty ) : array Builds a storable array out of an array property. It calls itself recursively for multidimensional arrays. For objects putObject() ist called with the object's hash value as $objectName.
reconstituteArray ( array $dataArray ) : array Reconstitutes an array from a data array.
reconstituteCollection ( string $type, array $dataArray ) : Doctrine\Common\Collections\Collection Reconstitutes a Doctrine Collection from a data array.
reconstituteObject ( string $objectHash, array $objectData ) : object Reconstitutes an object from a serialized object without calling the constructor.
reconstitutePersistenceObject ( string $className, string $uuid ) : object Reconstitutes a persistence object (entity or valueobject) identified by the given UUID.
reconstituteSplObjectStorage ( array $dataArray ) : SplObjectStorage Reconstitutes an SplObjectStorage from a data array.

메소드 상세

buildStorageArrayForArrayProperty() 보호된 메소드

Builds a storable array out of an array property. It calls itself recursively for multidimensional arrays. For objects putObject() ist called with the object's hash value as $objectName.
protected buildStorageArrayForArrayProperty ( array $arrayProperty ) : array
$arrayProperty array The source array property
리턴 array The array property to store

clearState() 공개 메소드

Clears the internal state, discarding all stored objects.
public clearState ( ) : void
리턴 void

deserializeObjectsArray() 공개 메소드

Deserializes a given object tree and reinjects all dependencies.
public deserializeObjectsArray ( array $dataArray ) : array
$dataArray array The serialized objects array
리턴 array The deserialized objects in an array

injectObjectManager() 공개 메소드

Injects the object manager
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface The object manager
리턴 void

injectPersistenceManager() 공개 메소드

Inject the persistence manager
public injectPersistenceManager ( Neos\Flow\Persistence\PersistenceManagerInterface $persistenceManager ) : void
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface The persistence manager
리턴 void

injectReflectionService() 공개 메소드

Injects the reflection service
public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService The reflection service
리턴 void

reconstituteArray() 보호된 메소드

Reconstitutes an array from a data array.
protected reconstituteArray ( array $dataArray ) : array
$dataArray array The data array to reconstitute from
리턴 array The reconstituted array

reconstituteCollection() 보호된 메소드

Reconstitutes a Doctrine Collection from a data array.
protected reconstituteCollection ( string $type, array $dataArray ) : Doctrine\Common\Collections\Collection
$type string The collection type (class name) to create
$dataArray array The data array to reconstitute from
리턴 Doctrine\Common\Collections\Collection The reconstituted Collection

reconstituteObject() 보호된 메소드

Reconstitutes an object from a serialized object without calling the constructor.
protected reconstituteObject ( string $objectHash, array $objectData ) : object
$objectHash string Identifier of the serialized object
$objectData array The object data array
리턴 object

reconstitutePersistenceObject() 보호된 메소드

Reconstitutes a persistence object (entity or valueobject) identified by the given UUID.
protected reconstitutePersistenceObject ( string $className, string $uuid ) : object
$className string The class name of the object to retrieve
$uuid string The UUID of the object
리턴 object The reconstituted persistence object, NULL if none was found

reconstituteSplObjectStorage() 보호된 메소드

Reconstitutes an SplObjectStorage from a data array.
protected reconstituteSplObjectStorage ( array $dataArray ) : SplObjectStorage
$dataArray array The data array to reconstitute from
리턴 SplObjectStorage The reconstituted SplObjectStorage

serializeObjectAsPropertyArray() 공개 메소드

Serializes an object as property array.
public serializeObjectAsPropertyArray ( object $object, boolean $isTopLevelItem = true ) : array
$object object The object to store in the registry
$isTopLevelItem boolean Internal flag for managing the recursion
리턴 array The property array

프로퍼티 상세

$objectManager 보호되어 있는 프로퍼티

The object manager
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface

$objectReferences 보호되어 있는 프로퍼티

protected SplObjectStorage $objectReferences
리턴 SplObjectStorage

$objectsAsArray 보호되어 있는 프로퍼티

Objects stored as an array of properties
protected array $objectsAsArray
리턴 array

$persistenceManager 보호되어 있는 프로퍼티

The persistence manager
protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface

$reconstitutedObjects 보호되어 있는 프로퍼티

protected array $reconstitutedObjects
리턴 array

$reflectionService 보호되어 있는 프로퍼티

The reflection service
protected ReflectionService,Neos\Flow\Reflection $reflectionService
리턴 Neos\Flow\Reflection\ReflectionService