PHP 클래스 Bravo3\Orm\Drivers\Common\Ref

파일 보기 프로젝트 열기: bravo3/orm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$entity_id string
$relationship_name string
$source_class string TODO: Storing the class name in the database is a terrible idea. Ideally this needs to be a table name, however the ability to dereference a Ref requires class meta-data. This WILL be changed at some point.

공개 메소드들

메소드 설명
__construct ( string $source_class, string $entity_id, string $relationship_name ) Create an inverse reference to an entity
__toString ( ) : string Get the ref in string form
fromString ( string $ref ) : Ref Create a ref from a string interpretation
getEntityId ( ) : string Get EntityId
getRelationshipName ( ) : string Get RelationshipName
getSourceClass ( ) : string Get SourceClass
setEntityId ( string $entity_id ) Set EntityId
setRelationshipName ( string $relationship_name ) Set RelationshipName
setSourceClass ( string $source_class ) Set SourceClass

메소드 상세

__construct() 공개 메소드

Create an inverse reference to an entity
public __construct ( string $source_class, string $entity_id, string $relationship_name )
$source_class string
$entity_id string
$relationship_name string

__toString() 공개 메소드

Get the ref in string form
public __toString ( ) : string
리턴 string

fromString() 공개 정적인 메소드

Create a ref from a string interpretation
public static fromString ( string $ref ) : Ref
$ref string
리턴 Ref

getEntityId() 공개 메소드

Get EntityId
public getEntityId ( ) : string
리턴 string

getRelationshipName() 공개 메소드

Get RelationshipName
public getRelationshipName ( ) : string
리턴 string

getSourceClass() 공개 메소드

Get SourceClass
public getSourceClass ( ) : string
리턴 string

setEntityId() 공개 메소드

Set EntityId
public setEntityId ( string $entity_id )
$entity_id string

setRelationshipName() 공개 메소드

Set RelationshipName
public setRelationshipName ( string $relationship_name )
$relationship_name string

setSourceClass() 공개 메소드

Set SourceClass
public setSourceClass ( string $source_class )
$source_class string

프로퍼티 상세

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

protected string $entity_id
리턴 string

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

protected string $relationship_name
리턴 string

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

TODO: Storing the class name in the database is a terrible idea. Ideally this needs to be a table name, however the ability to dereference a Ref requires class meta-data. This WILL be changed at some point.
protected string $source_class
리턴 string