PHP 클래스 Neos\Flow\Persistence\AbstractPersistenceManager

상속: implements Neos\Flow\Persistence\PersistenceManagerInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$hasUnpersistedChanges boolean
$newObjects array
$settings array
$whitelistedObjects SplObjectStorage

공개 메소드들

메소드 설명
__construct ( ) Constructor
clearState ( ) : void Clears the in-memory state of the persistence.
convertObjectToIdentityArray ( object $object ) : array Converts the given object into an array containing the identity of the domain object.
convertObjectsToIdentityArrays ( array $array ) : array Recursively iterates through the given array and turns objects into an arrays containing the identity of the domain object.
hasUnpersistedChanges ( ) : boolean Gives feedback if the persistence Manager has unpersisted changes.
injectSettings ( array $settings ) : void Injects the Flow settings, the persistence part is kept for further use.
registerNewObject ( Aspect\PersistenceMagicInterface $object ) : void Registers an object which has been created or cloned during this request.
whitelistObject ( object $object ) : void Adds the given object to a whitelist of objects which may be persisted even if the current HTTP request is considered a "safe" request.

보호된 메소드들

메소드 설명
throwExceptionIfObjectIsNotWhitelisted ( object $object ) : void Checks if the given object is whitelisted and if not, throws an exception

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

clearState() 공개 메소드

Clears the in-memory state of the persistence.
public clearState ( ) : void
리턴 void

convertObjectToIdentityArray() 공개 메소드

Converts the given object into an array containing the identity of the domain object.
public convertObjectToIdentityArray ( object $object ) : array
$object object The object to be converted
리턴 array The identity array in the format array('__identity' => '...')

convertObjectsToIdentityArrays() 공개 메소드

Recursively iterates through the given array and turns objects into an arrays containing the identity of the domain object.
public convertObjectsToIdentityArrays ( array $array ) : array
$array array The array to be iterated over
리턴 array The modified array without objects

hasUnpersistedChanges() 공개 메소드

This is primarily used to inform the user if he tries to save data in an unsafe request.
public hasUnpersistedChanges ( ) : boolean
리턴 boolean

injectSettings() 공개 메소드

Injects the Flow settings, the persistence part is kept for further use.
public injectSettings ( array $settings ) : void
$settings array
리턴 void

registerNewObject() 공개 메소드

The given object must contain the Persistence_Object_Identifier property, thus the PersistenceMagicInterface type hint. A "new" object does not necessarily have to be known by any repository or be persisted in the end. Objects registered with this method must be known to the getObjectByIdentifier() method.
public registerNewObject ( Aspect\PersistenceMagicInterface $object ) : void
$object Aspect\PersistenceMagicInterface The new object to register
리턴 void

throwExceptionIfObjectIsNotWhitelisted() 보호된 메소드

Checks if the given object is whitelisted and if not, throws an exception
protected throwExceptionIfObjectIsNotWhitelisted ( object $object ) : void
$object object
리턴 void

whitelistObject() 공개 메소드

Adds the given object to a whitelist of objects which may be persisted even if the current HTTP request is considered a "safe" request.
public whitelistObject ( object $object ) : void
$object object The object
리턴 void

프로퍼티 상세

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

protected bool $hasUnpersistedChanges
리턴 boolean

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

protected array $newObjects
리턴 array

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

protected array $settings
리턴 array

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

protected SplObjectStorage $whitelistedObjects
리턴 SplObjectStorage