PHP 클래스 Doctrine\OXM\Mapping\Driver\AnnotationDriver

부터: 2.0
저자: Richard Fullmer ([email protected])
상속: implements Doctrine\OXM\Mapping\Driver\Driver
파일 보기 프로젝트 열기: doctrine/oxm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$classNames
$fileExtension string The file extension of mapping documents.
$paths array The paths where to look for mapping files.

공개 메소드들

메소드 설명
__construct ( AnnotationReader $reader, string | array $paths = null ) Initializes a new AnnotationDriver that uses the given AnnotationReader for reading docblock annotations.
addPaths ( array $paths ) Append lookup paths to metadata driver.
create ( array | string $paths = [], AnnotationReader $reader = null ) : AnnotationDriver Factory method for the Annotation Driver
getAllClassNames ( ) {@inheritDoc}
getFileExtension ( ) : void Get the file extension used to look for mapping files under
getPaths ( ) : array Retrieve the defined metadata lookup paths.
isTransient ( string $className ) : boolean Whether the class with the specified name is transient. Only non-transient classes, that is entities and mapped superclasses, should have their metadata loaded.
loadMetadataForClass ( $className, ClassMetadataInfo $metadata )
setFileExtension ( string $fileExtension ) : void Set the file extension used to look for mapping files under

메소드 상세

__construct() 공개 메소드

Initializes a new AnnotationDriver that uses the given AnnotationReader for reading docblock annotations.
public __construct ( AnnotationReader $reader, string | array $paths = null )
$reader Doctrine\Common\Annotations\AnnotationReader The AnnotationReader to use.
$paths string | array One or multiple paths where mapping classes can be found.

addPaths() 공개 메소드

Append lookup paths to metadata driver.
public addPaths ( array $paths )
$paths array

create() 공개 정적인 메소드

Factory method for the Annotation Driver
public static create ( array | string $paths = [], AnnotationReader $reader = null ) : AnnotationDriver
$paths array | string
$reader Doctrine\Common\Annotations\AnnotationReader
리턴 AnnotationDriver

getAllClassNames() 공개 메소드

{@inheritDoc}
public getAllClassNames ( )

getFileExtension() 공개 메소드

Get the file extension used to look for mapping files under
public getFileExtension ( ) : void
리턴 void

getPaths() 공개 메소드

Retrieve the defined metadata lookup paths.
public getPaths ( ) : array
리턴 array

isTransient() 공개 메소드

A class is non-transient if it is annotated with either @XmlEntity or
public isTransient ( string $className ) : boolean
$className string
리턴 boolean

loadMetadataForClass() 공개 메소드

public loadMetadataForClass ( $className, ClassMetadataInfo $metadata )
$metadata Doctrine\OXM\Mapping\ClassMetadataInfo

setFileExtension() 공개 메소드

Set the file extension used to look for mapping files under
public setFileExtension ( string $fileExtension ) : void
$fileExtension string The file extension to set
리턴 void

프로퍼티 상세

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

protected $classNames

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

The file extension of mapping documents.
protected string $fileExtension
리턴 string

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

The paths where to look for mapping files.
protected array $paths
리턴 array