PHP Интерфейс LeanMapper\IMapper

Автор: Vojtěch Kohout
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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