PHP Класс Neos\Flow\Persistence\Generic\DataMapper

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$persistenceSession Session
$reflectionService Neos\Flow\Reflection\ReflectionService

Открытые методы

Метод Описание
injectPersistenceSession ( Session $persistenceSession ) : void Injects the persistence session
injectReflectionService ( ReflectionService $reflectionService ) : void Injects a Reflection Service instance used for processing objects
mapToObject ( array $objectData ) : object Maps a single record into the object it represents and registers it as reconstituted with the session.
mapToObjects ( array $objectsData ) : array Maps the (aggregate root) node data and registers the objects as reconstituted with the session.
setPersistenceManager ( Neos\Flow\Persistence\PersistenceManagerInterface $persistenceManager ) : void Injects the persistence manager
thawProperties ( object $object, string $identifier, array $objectData ) : void Sets the given properties on the object.

Защищенные методы

Метод Описание
mapArray ( array $arrayValues = null ) : array Maps an array proxy structure back to a native PHP array
mapDateTime ( integer $timestamp ) : DateTime Creates a \DateTime from an unix timestamp. If the input is not an integer NULL is returned.
mapSplObjectStorage ( array $objectStorageValues = null, boolean $createLazySplObjectStorage = false ) : SplObjectStorage Maps an SplObjectStorage proxy record back to an SplObjectStorage

Описание методов

injectPersistenceSession() публичный Метод

Injects the persistence session
public injectPersistenceSession ( Session $persistenceSession ) : void
$persistenceSession Session The persistence session
Результат void

injectReflectionService() публичный Метод

Injects a Reflection Service instance used for processing objects
public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService
Результат void

mapArray() защищенный Метод

Maps an array proxy structure back to a native PHP array
protected mapArray ( array $arrayValues = null ) : array
$arrayValues array
Результат array

mapDateTime() защищенный Метод

Creates a \DateTime from an unix timestamp. If the input is not an integer NULL is returned.
protected mapDateTime ( integer $timestamp ) : DateTime
$timestamp integer
Результат DateTime

mapSplObjectStorage() защищенный Метод

Maps an SplObjectStorage proxy record back to an SplObjectStorage
protected mapSplObjectStorage ( array $objectStorageValues = null, boolean $createLazySplObjectStorage = false ) : SplObjectStorage
$objectStorageValues array
$createLazySplObjectStorage boolean
Результат SplObjectStorage

mapToObject() публичный Метод

Maps a single record into the object it represents and registers it as reconstituted with the session.
public mapToObject ( array $objectData ) : object
$objectData array
Результат object

mapToObjects() публичный Метод

Note: QueryResult relies on the fact that the first object of $objects has the numeric index "0"
public mapToObjects ( array $objectsData ) : array
$objectsData array
Результат array

setPersistenceManager() публичный Метод

Injects the persistence manager
public setPersistenceManager ( Neos\Flow\Persistence\PersistenceManagerInterface $persistenceManager ) : void
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface The persistence manager
Результат void

thawProperties() публичный Метод

Sets the given properties on the object.
public thawProperties ( object $object, string $identifier, array $objectData ) : void
$object object The object to set properties on
$identifier string The identifier of the object
$objectData array
Результат void

Описание свойств

$persistenceManager защищенное свойство

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Результат Neos\Flow\Persistence\PersistenceManagerInterface

$persistenceSession защищенное свойство

protected Session,Neos\Flow\Persistence\Generic $persistenceSession
Результат Session

$reflectionService защищенное свойство

protected ReflectionService,Neos\Flow\Reflection $reflectionService
Результат Neos\Flow\Reflection\ReflectionService