PHP 인터페이스 LeanMapper\IMapper

저자: Vojtěch Kohout
파일 보기 프로젝트 열기: tharos/leanmapper 0 사용 예제들

공개 메소드들

메소드 설명
getColumn ( string $entityClass, string $field ) : string Gets table column name from given fully qualified entity class name and entity field name
getEntityClass ( string $table, Row $row = null ) : string Gets fully qualified entity class name from given table name
getEntityField ( string $table, string $column ) : string Gets entity field (property) name from given table name and table column
getImplicitFilters ( string $entityClass, Caller $caller = null ) : array | ImplicitFilters Gets filters that should be used used every time when given entity is loaded from database
getPrimaryKey ( string $table ) : string Gets primary key name from given table name
getRelationshipColumn ( string $sourceTable, string $targetTable ) : string Gets name of column that contains foreign key from given source table name and target table name
getRelationshipTable ( string $sourceTable, string $targetTable ) : string Gets relationship table name from given source table name and target table name
getTable ( string $entityClass ) : string Gets table name from given fully qualified entity class name
getTableByRepositoryClass ( string $repositoryClass ) : string Gets table name from repository class name

메소드 상세

getColumn() 공개 메소드

Gets table column name from given fully qualified entity class name and entity field name
public getColumn ( string $entityClass, string $field ) : string
$entityClass string
$field string
리턴 string

getEntityClass() 공개 메소드

Gets fully qualified entity class name from given table name
public getEntityClass ( string $table, Row $row = null ) : string
$table string
$row Row
리턴 string

getEntityField() 공개 메소드

Gets entity field (property) name from given table name and table column
public getEntityField ( string $table, string $column ) : string
$table string
$column string
리턴 string

getImplicitFilters() 공개 메소드

Gets filters that should be used used every time when given entity is loaded from database
public getImplicitFilters ( string $entityClass, Caller $caller = null ) : array | ImplicitFilters
$entityClass string
$caller Caller
리턴 array | ImplicitFilters

getPrimaryKey() 공개 메소드

Gets primary key name from given table name
public getPrimaryKey ( string $table ) : string
$table string
리턴 string

getRelationshipColumn() 공개 메소드

Gets name of column that contains foreign key from given source table name and target table name
public getRelationshipColumn ( string $sourceTable, string $targetTable ) : string
$sourceTable string
$targetTable string
리턴 string

getRelationshipTable() 공개 메소드

Gets relationship table name from given source table name and target table name
public getRelationshipTable ( string $sourceTable, string $targetTable ) : string
$sourceTable string
$targetTable string
리턴 string

getTable() 공개 메소드

Gets table name from given fully qualified entity class name
public getTable ( string $entityClass ) : string
$entityClass string
리턴 string

getTableByRepositoryClass() 공개 메소드

Gets table name from repository class name
public getTableByRepositoryClass ( string $repositoryClass ) : string
$repositoryClass string
리턴 string