PHP 클래스 Neos\Flow\Persistence\Generic\DataMapper

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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