PHP Class LeanMapper\DefaultMapper

Author: Vojtěch Kohout
Inheritance: implements leanmapper\IMapper
Datei anzeigen Open project: tharos/leanmapper Class Usage Examples

Protected Properties

Property Type Description
$defaultEntityNamespace string
$relationshipTableGlue string

Public Methods

Method Description
getColumn ( $entityClass, $field ) *
getEntityClass ( $table, Row $row = null ) *
getEntityField ( $table, $column ) *
getImplicitFilters ( $entityClass, Caller $caller = null ) *
getPrimaryKey ( $table ) *
getRelationshipColumn ( $sourceTable, $targetTable ) *
getRelationshipTable ( $sourceTable, $targetTable ) *
getTable ( $entityClass ) *
getTableByRepositoryClass ( $repositoryClass ) *

Protected Methods

Method Description
trimNamespace ( $class ) : string Trims namespace part from fully qualified class name

Method Details

getColumn() public method

*
public getColumn ( $entityClass, $field )

getEntityClass() public method

*
public getEntityClass ( $table, Row $row = null )
$row Row

getEntityField() public method

*
public getEntityField ( $table, $column )

getImplicitFilters() public method

*
public getImplicitFilters ( $entityClass, Caller $caller = null )
$caller Caller

getPrimaryKey() public method

*
public getPrimaryKey ( $table )

getRelationshipColumn() public method

*
public getRelationshipColumn ( $sourceTable, $targetTable )

getRelationshipTable() public method

*
public getRelationshipTable ( $sourceTable, $targetTable )

getTable() public method

*
public getTable ( $entityClass )

getTableByRepositoryClass() public method

*
public getTableByRepositoryClass ( $repositoryClass )

trimNamespace() protected method

Trims namespace part from fully qualified class name
protected trimNamespace ( $class ) : string
$class
return string

Property Details

$defaultEntityNamespace protected_oe property

protected string $defaultEntityNamespace
return string

$relationshipTableGlue protected_oe property

protected string $relationshipTableGlue
return string