PHP 인터페이스 Bravo3\Orm\KeySchemes\KeySchemeInterface

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

공개 메소드들

메소드 설명
getEntityKey ( string $table_name, string $id ) : string Return the key for an entity document
getEntityRefKey ( string $table_name, string $id ) : string Return the key for an entity ref table
getIndexKey ( Bravo3\Orm\Mappers\Metadata\Index $index, string $key ) : string Get the key for an standard index
getRelationshipKey ( Relationship $relationship, string $source_table, string $target_table, string $id ) : string Get the key for a foreign relationship
getSortIndexKey ( Relationship $relationship, string $source_table, string $target_table, string $sort_field, string $id ) : string Get the key for a sort index on a relationship
getTableSortKey ( string $table_name, string $sort_field ) : string Get the key for a sort index on a table

메소드 상세

getEntityKey() 공개 메소드

Return the key for an entity document
public getEntityKey ( string $table_name, string $id ) : string
$table_name string
$id string
리턴 string

getEntityRefKey() 공개 메소드

Return the key for an entity ref table
public getEntityRefKey ( string $table_name, string $id ) : string
$table_name string Table name
$id string Entity ID
리턴 string

getIndexKey() 공개 메소드

Get the key for an standard index
public getIndexKey ( Bravo3\Orm\Mappers\Metadata\Index $index, string $key ) : string
$index Bravo3\Orm\Mappers\Metadata\Index Index belonging to entity
$key string Index key
리턴 string

getRelationshipKey() 공개 메소드

Get the key for a foreign relationship
public getRelationshipKey ( Relationship $relationship, string $source_table, string $target_table, string $id ) : string
$relationship Bravo3\Orm\Mappers\Metadata\Relationship Relationship
$source_table string Source table name
$target_table string Target table name
$id string Source entity ID
리턴 string

getSortIndexKey() 공개 메소드

Get the key for a sort index on a relationship
public getSortIndexKey ( Relationship $relationship, string $source_table, string $target_table, string $sort_field, string $id ) : string
$relationship Bravo3\Orm\Mappers\Metadata\Relationship Relationship
$source_table string Source table name
$target_table string Target table name
$sort_field string Property name on the inverse entity
$id string Local ID
리턴 string

getTableSortKey() 공개 메소드

Get the key for a sort index on a table
public getTableSortKey ( string $table_name, string $sort_field ) : string
$table_name string Name of table containing sorted entity list
$sort_field string Sortable field on the table
리턴 string