PHP 인터페이스 Nextras\Orm\Entity\IEntity

상속: extends Serializabl\Serializable
파일 보기 프로젝트 열기: nextras/orm 0 사용 예제들

공개 메소드들

메소드 설명
fireEvent ( string $method, array $args = [] ) Fires event.
getMetadata ( ) : EntityMetadata Returns entity metadata.
getModel ( boolean $need = true ) : Nextras\Orm\Model\IModel Returns entity model.
getPersistedId ( ) : mixed Returns persisted primary value.
getPreloadContainer ( ) : Nextras\Orm\Collection\IEntityPreloadContainer
getProperty ( string $name ) : mixed | Nextras\Orm\Entity\IPropertyContainer Returns property contents.
getRawProperty ( string $name ) : mixed Returns property raw contents.
getRawValue ( string $name ) : mixed Returns raw value.
getRepository ( boolean $need = true ) : Nextras\Orm\Repository\IRepository | null Returns entity repository.
getValue ( string $name ) : mixed Returns value.
hasValue ( string $name ) : boolean Returns true if property has a value (not null).
isAttached ( ) : boolean Returns true if entity is attached to its repository.
isModified ( string $name = null ) : boolean Returns true if the entity is modiefied or the column $name is modified.
isPersisted ( ) : boolean Returns true if entity is persisted.
setAsModified ( string $name = null ) : self Sets the entity or the column as modified.
setPreloadContainer ( Nextras\Orm\Collection\IEntityPreloadContainer $overIterator = null ) Sets the collection of entites for the loading relations at once.
setRawValue ( string $name, mixed $value ) Sets raw value.
setReadOnlyValue ( string $name, mixed $value ) : self Sets read-only value.
setValue ( string $name, mixed $value ) : self Sets property value.
toArray ( integer $mode = self::TO_ARRAY_RELATIONSHIP_AS_IS ) : array Converts entity to array.

메소드 상세

fireEvent() 공개 메소드

Fires event.
public fireEvent ( string $method, array $args = [] )
$method string
$args array

getMetadata() 공개 메소드

Returns entity metadata.
public getMetadata ( ) : EntityMetadata
리턴 Nextras\Orm\Entity\Reflection\EntityMetadata

getModel() 공개 메소드

Returns entity model.
public getModel ( boolean $need = true ) : Nextras\Orm\Model\IModel
$need boolean
리턴 Nextras\Orm\Model\IModel

getPersistedId() 공개 메소드

Returns persisted primary value.
public getPersistedId ( ) : mixed
리턴 mixed

getPreloadContainer() 공개 메소드

public getPreloadContainer ( ) : Nextras\Orm\Collection\IEntityPreloadContainer
리턴 Nextras\Orm\Collection\IEntityPreloadContainer

getProperty() 공개 메소드

Returns property contents.
public getProperty ( string $name ) : mixed | Nextras\Orm\Entity\IPropertyContainer
$name string
리턴 mixed | Nextras\Orm\Entity\IPropertyContainer

getRawProperty() 공개 메소드

Returns property raw contents.
public getRawProperty ( string $name ) : mixed
$name string
리턴 mixed

getRawValue() 공개 메소드

Raw value is normalized value which is suitable unique identification and storing.
public getRawValue ( string $name ) : mixed
$name string
리턴 mixed

getRepository() 공개 메소드

Returns entity repository.
public getRepository ( boolean $need = true ) : Nextras\Orm\Repository\IRepository | null
$need boolean
리턴 Nextras\Orm\Repository\IRepository | null

getValue() 공개 메소드

Returns value.
public getValue ( string $name ) : mixed
$name string
리턴 mixed

hasValue() 공개 메소드

Returns true if property has a value (not null).
public hasValue ( string $name ) : boolean
$name string
리턴 boolean

isAttached() 공개 메소드

Returns true if entity is attached to its repository.
public isAttached ( ) : boolean
리턴 boolean

isModified() 공개 메소드

Returns true if the entity is modiefied or the column $name is modified.
public isModified ( string $name = null ) : boolean
$name string
리턴 boolean

isPersisted() 공개 메소드

Returns true if entity is persisted.
public isPersisted ( ) : boolean
리턴 boolean

setAsModified() 공개 메소드

Sets the entity or the column as modified.
public setAsModified ( string $name = null ) : self
$name string
리턴 self

setPreloadContainer() 공개 메소드

Sets the collection of entites for the loading relations at once.
public setPreloadContainer ( Nextras\Orm\Collection\IEntityPreloadContainer $overIterator = null )
$overIterator Nextras\Orm\Collection\IEntityPreloadContainer

setRawValue() 공개 메소드

Sets raw value.
public setRawValue ( string $name, mixed $value )
$name string
$value mixed

setReadOnlyValue() 공개 메소드

Sets read-only value.
public setReadOnlyValue ( string $name, mixed $value ) : self
$name string
$value mixed
리턴 self

setValue() 공개 메소드

Sets property value.
public setValue ( string $name, mixed $value ) : self
$name string
$value mixed
리턴 self

toArray() 공개 메소드

Converts entity to array.
public toArray ( integer $mode = self::TO_ARRAY_RELATIONSHIP_AS_IS ) : array
$mode integer
리턴 array