PHP 인터페이스 Storm\Core\Object\IEntityMap

저자: Elliot Levin ([email protected])
파일 보기 프로젝트 열기: timetoogo/penumbra 0 사용 예제들

공개 메소드들

메소드 설명
Apply ( Domain $Domain, object $Entity, PropertyData $PropertyData ) : void Applies the supplied property data to the supplied entity instance.
Discard ( UnitOfWork $UnitOfWork, object $Entity ) : DiscardenceData Discards an entity's relationships to the supplied unit of work and returns the discardence data.
DiscardenceData ( array $DiscardenceData = [] ) : DiscardenceData
GetCollectionProperties ( ) : Storm\Core\Object\ICollectionProperty[]
GetDataProperties ( ) : Storm\Core\Object\IDataProperty[]
GetEntityProperties ( ) : Storm\Core\Object\IEntityProperty[]
GetEntityType ( ) : string
GetIdentityProperties ( ) : Storm\Core\Object\IProperty[]
GetProperties ( ) : Storm\Core\Object\IProperty[]
GetProperty ( string $Identifier ) : Storm\Core\Object\IProperty | null Gets a property by its identifier
GetRelationshipProperties ( ) : Storm\Core\Object\IRelationshipProperty[]
HasIdentity ( object $Entity ) : boolean Whether or not the entity has a full identity.
HasIdentityProperty ( string $Identifier ) : boolean Whether or not this map contains a property with the supplied identifier
HasProperty ( string $Identifier ) : boolean Whether or not this map contains a property withthe supplied identifier
HasRelationshipProperty ( string $Identifier ) : void Whether or not this map contains a relationship property with the supplied identifier
Identity ( object | null $Entity = null ) : Identity If the entity is null returns a new blank identity otherwise returns the identity of the supplied entity.
InititalizeProperties ( Domain $Domain ) : void Initializes the properties of the entity within the context of the parent domain.
Is ( Storm\Core\Object\IEntityMap $OtherEntityMap ) : boolean Whether or not this and the supplied entity map represent the same entity.
LoadEntity ( Domain $Domain, RevivalData $RevivalData, object $Entity ) : void Loads an entity instance with the supplied revival data.
Persist ( UnitOfWork $UnitOfWork, object $Entity ) : PersistenceData Persists an entity's relationships to the supplied unit of work and returns the persistence data.
PersistRelationships ( UnitOfWork $UnitOfWork, object $Entity ) : PersistenceData Persists an entity's relationships to the supplied unit of work.
PersistanceData ( array $PersistanceData = [] ) : PersistenceData
RevivalData ( array $RevivalData = [] ) : RevivalData
ReviveEntities ( Domain $Domain, array $RevivalDataArray ) : object[] Revives an array of entities from the supplied array of revival data.

메소드 상세

Apply() 공개 메소드

Applies the supplied property data to the supplied entity instance.
public Apply ( Domain $Domain, object $Entity, PropertyData $PropertyData ) : void
$Domain Domain The object domain to revive in entity in.
$Entity object The entity to apply the property data
$PropertyData PropertyData The property data apply
리턴 void

Discard() 공개 메소드

Discards an entity's relationships to the supplied unit of work and returns the discardence data.
public Discard ( UnitOfWork $UnitOfWork, object $Entity ) : DiscardenceData
$UnitOfWork UnitOfWork The unit of work to discard from
$Entity object The entity to discard
리턴 DiscardenceData The discardence data of the entity

DiscardenceData() 공개 메소드

public DiscardenceData ( array $DiscardenceData = [] ) : DiscardenceData
$DiscardenceData array
리턴 DiscardenceData

GetCollectionProperties() 공개 메소드

public GetCollectionProperties ( ) : Storm\Core\Object\ICollectionProperty[]
리턴 Storm\Core\Object\ICollectionProperty[]

GetDataProperties() 공개 메소드

public GetDataProperties ( ) : Storm\Core\Object\IDataProperty[]
리턴 Storm\Core\Object\IDataProperty[]

GetEntityProperties() 공개 메소드

public GetEntityProperties ( ) : Storm\Core\Object\IEntityProperty[]
리턴 Storm\Core\Object\IEntityProperty[]

GetEntityType() 공개 메소드

public GetEntityType ( ) : string
리턴 string

GetIdentityProperties() 공개 메소드

public GetIdentityProperties ( ) : Storm\Core\Object\IProperty[]
리턴 Storm\Core\Object\IProperty[]

GetProperties() 공개 메소드

public GetProperties ( ) : Storm\Core\Object\IProperty[]
리턴 Storm\Core\Object\IProperty[]

GetProperty() 공개 메소드

Gets a property by its identifier
public GetProperty ( string $Identifier ) : Storm\Core\Object\IProperty | null
$Identifier string The property identifier
리턴 Storm\Core\Object\IProperty | null The matched property

GetRelationshipProperties() 공개 메소드

public GetRelationshipProperties ( ) : Storm\Core\Object\IRelationshipProperty[]
리턴 Storm\Core\Object\IRelationshipProperty[]

HasIdentity() 공개 메소드

Whether or not the entity has a full identity.
public HasIdentity ( object $Entity ) : boolean
$Entity object The entity to check
리턴 boolean

HasIdentityProperty() 공개 메소드

Whether or not this map contains a property with the supplied identifier
public HasIdentityProperty ( string $Identifier ) : boolean
$Identifier string The property identifier
리턴 boolean

HasProperty() 공개 메소드

Whether or not this map contains a property withthe supplied identifier
public HasProperty ( string $Identifier ) : boolean
$Identifier string The property identifier
리턴 boolean

HasRelationshipProperty() 공개 메소드

Whether or not this map contains a relationship property with the supplied identifier
public HasRelationshipProperty ( string $Identifier ) : void
$Identifier string The property identifier
리턴 void

Identity() 공개 메소드

If the entity is null returns a new blank identity otherwise returns the identity of the supplied entity.
public Identity ( object | null $Entity = null ) : Identity
$Entity object | null
리턴 Identity The entity's identity

InititalizeProperties() 공개 메소드

Initializes the properties of the entity within the context of the parent domain.
public InititalizeProperties ( Domain $Domain ) : void
$Domain Domain The parent domain
리턴 void

Is() 공개 메소드

Whether or not this and the supplied entity map represent the same entity.
public Is ( Storm\Core\Object\IEntityMap $OtherEntityMap ) : boolean
$OtherEntityMap Storm\Core\Object\IEntityMap Another entity map
리턴 boolean

LoadEntity() 공개 메소드

Loads an entity instance with the supplied revival data.
public LoadEntity ( Domain $Domain, RevivalData $RevivalData, object $Entity ) : void
$Domain Domain
$RevivalData RevivalData The revival data to load the entity with
$Entity object The entity to load
리턴 void

Persist() 공개 메소드

Persists an entity's relationships to the supplied unit of work and returns the persistence data.
public Persist ( UnitOfWork $UnitOfWork, object $Entity ) : PersistenceData
$UnitOfWork UnitOfWork The unit of work to persist to
$Entity object The entity to persist
리턴 PersistenceData The persistence data of the entity

PersistRelationships() 공개 메소드

Persists an entity's relationships to the supplied unit of work.
public PersistRelationships ( UnitOfWork $UnitOfWork, object $Entity ) : PersistenceData
$UnitOfWork UnitOfWork The unit of work to persist to
$Entity object The entity to persist
리턴 PersistenceData The persistence data of the entity

PersistanceData() 공개 메소드

public PersistanceData ( array $PersistanceData = [] ) : PersistenceData
$PersistanceData array
리턴 PersistenceData

RevivalData() 공개 메소드

public RevivalData ( array $RevivalData = [] ) : RevivalData
$RevivalData array
리턴 RevivalData

ReviveEntities() 공개 메소드

Revives an array of entities from the supplied array of revival data.
public ReviveEntities ( Domain $Domain, array $RevivalDataArray ) : object[]
$Domain Domain
$RevivalDataArray array The array of revival data
리턴 object[] The revived entities