PHP 클래스 Bravo3\Orm\Mappers\Annotation\AnnotationMetadataParser

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

보호된 프로퍼티들

프로퍼티 타입 설명
$annotation_reader Doctrine\Common\Annotations\AnnotationReader
$class_name string
$entity_annotation Bravo3\Orm\Annotations\Entity
$reflection_obj ReflectionClass

공개 메소드들

메소드 설명
__construct ( $class_name )
getColumns ( ) : Column[] Get all columns in the entity
getEntityAnnotation ( ) : Entity Lazy-load @Entity annotation
getEntityMetadata ( boolean $shallow = false ) : Entity Get the Entity metadata object
getIndices ( ) : Bravo3\Orm\Mappers\Metadata\Index[] Get all indices on the entity
getRelationships ( ) : Relationship[] Get all relationships in the entity
getSortables ( ) : Sortable[] Get table sortables
getTableName ( ) : string Gets the entity table name

비공개 메소드들

메소드 설명
createRelationship ( string $name, RelationshipType $type, AbstractRelationshipAnnotation $annotation ) : Relationship Create a relationship from an annotation
getOrganicTableName ( ) : string Get the table name by inflecting the class name
parseColumnAnnotation ( Column $column_annotation, string $name ) : Column Parse a ColumnAnnotation and return a Column object
testConditionAnnotation ( Condition $condition ) Check a condition and throw an exception if it is invalid
validateTableName ( ) Throw an exception if the table name contains illegal chars

메소드 상세

__construct() 공개 메소드

public __construct ( $class_name )

getColumns() 공개 메소드

Get all columns in the entity
public getColumns ( ) : Column[]
리턴 Bravo3\Orm\Mappers\Metadata\Column[]

getEntityAnnotation() 공개 메소드

Lazy-load @Entity annotation
public getEntityAnnotation ( ) : Entity
리턴 Bravo3\Orm\Annotations\Entity

getEntityMetadata() 공개 메소드

Get the Entity metadata object
public getEntityMetadata ( boolean $shallow = false ) : Entity
$shallow boolean
리턴 Bravo3\Orm\Mappers\Metadata\Entity

getIndices() 공개 메소드

Get all indices on the entity
public getIndices ( ) : Bravo3\Orm\Mappers\Metadata\Index[]
리턴 Bravo3\Orm\Mappers\Metadata\Index[]

getRelationships() 공개 메소드

Get all relationships in the entity
public getRelationships ( ) : Relationship[]
리턴 Bravo3\Orm\Mappers\Metadata\Relationship[]

getSortables() 공개 메소드

Get table sortables
public getSortables ( ) : Sortable[]
리턴 Bravo3\Orm\Mappers\Metadata\Sortable[]

getTableName() 공개 메소드

Gets the entity table name
public getTableName ( ) : string
리턴 string

프로퍼티 상세

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

protected AnnotationReader,Doctrine\Common\Annotations $annotation_reader
리턴 Doctrine\Common\Annotations\AnnotationReader

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

protected string $class_name
리턴 string

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

protected Entity,Bravo3\Orm\Annotations $entity_annotation
리턴 Bravo3\Orm\Annotations\Entity

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

protected ReflectionClass $reflection_obj
리턴 ReflectionClass