PHP Класс Doctrine\OXM\Mapping\Driver\AnnotationDriver

С версии: 2.0
Автор: Richard Fullmer ([email protected])
Наследование: implements Doctrine\OXM\Mapping\Driver\Driver
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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