PHP 클래스 Bravo3\Orm\Services\AbstractManagerUtility

파일 보기 프로젝트 열기: bravo3/orm

보호된 프로퍼티들

프로퍼티 타입 설명
$entity_manager EntityManager

공개 메소드들

메소드 설명
__construct ( EntityManager $entity_manager )

보호된 메소드들

메소드 설명
buildPrerequisites ( object $entity, Entity $metadata = null, Reader $reader = null, string $local_id = null ) : array Build requisite services & data if they were not provided
getDriver ( ) : Bravo3\Orm\Drivers\DriverInterface Get the driver belonging to the entity manager
getEntityId ( object $entity ) : string Get the full ID of an entity
getKeyScheme ( ) : Bravo3\Orm\KeySchemes\KeySchemeInterface Get the key scheme belonging to the entity manager
getMapper ( ) : Bravo3\Orm\Mappers\MapperInterface Get the mapper belonging to the entity manager
getRelationshipKey ( Relationship $relationship, string $source_id ) : string Get a relationship key, resolving table names accordingly
getSortIndexKey ( Relationship $relationship, $sort_name, $source_id ) : string Get a sort index key, resolving table names accordingly
getSourceTable ( Relationship $relationship ) : string Get the relationship source table name
getTableForClass ( string $class ) : string Get the table name for a given entity class
getTargetTable ( Relationship $relationship ) : string Get the relationship target table name

메소드 상세

__construct() 공개 메소드

public __construct ( EntityManager $entity_manager )
$entity_manager EntityManager

buildPrerequisites() 보호된 메소드

Build requisite services & data if they were not provided
protected buildPrerequisites ( object $entity, Entity $metadata = null, Reader $reader = null, string $local_id = null ) : array
$entity object
$metadata Bravo3\Orm\Mappers\Metadata\Entity
$reader Bravo3\Orm\Services\Io\Reader
$local_id string
리턴 array

getDriver() 보호된 메소드

Get the driver belonging to the entity manager
protected getDriver ( ) : Bravo3\Orm\Drivers\DriverInterface
리턴 Bravo3\Orm\Drivers\DriverInterface

getEntityId() 보호된 메소드

Get the full ID of an entity
protected getEntityId ( object $entity ) : string
$entity object
리턴 string

getKeyScheme() 보호된 메소드

Get the key scheme belonging to the entity manager
protected getKeyScheme ( ) : Bravo3\Orm\KeySchemes\KeySchemeInterface
리턴 Bravo3\Orm\KeySchemes\KeySchemeInterface

getMapper() 보호된 메소드

Get the mapper belonging to the entity manager
protected getMapper ( ) : Bravo3\Orm\Mappers\MapperInterface
리턴 Bravo3\Orm\Mappers\MapperInterface

getRelationshipKey() 보호된 메소드

Get a relationship key, resolving table names accordingly
protected getRelationshipKey ( Relationship $relationship, string $source_id ) : string
$relationship Bravo3\Orm\Mappers\Metadata\Relationship
$source_id string
리턴 string

getSortIndexKey() 보호된 메소드

Get a sort index key, resolving table names accordingly
protected getSortIndexKey ( Relationship $relationship, $sort_name, $source_id ) : string
$relationship Bravo3\Orm\Mappers\Metadata\Relationship
$sort_name
$source_id
리턴 string

getSourceTable() 보호된 메소드

Get the relationship source table name
protected getSourceTable ( Relationship $relationship ) : string
$relationship Bravo3\Orm\Mappers\Metadata\Relationship
리턴 string

getTableForClass() 보호된 메소드

Get the table name for a given entity class
protected getTableForClass ( string $class ) : string
$class string
리턴 string

getTargetTable() 보호된 메소드

Get the relationship target table name
protected getTargetTable ( Relationship $relationship ) : string
$relationship Bravo3\Orm\Mappers\Metadata\Relationship
리턴 string

프로퍼티 상세

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

protected EntityManager,Bravo3\Orm\Services $entity_manager
리턴 EntityManager