AnnotationDriver
public class AnnotationDriver
www.doctrine-project.org
Field Summary | |
---|---|
protected mixed | |
protected string | The file extension of mapping documents. |
protected array | The paths where to look for mapping files. |
Constructor Summary | |
---|---|
AnnotationDriver(mixed reader, string|array paths, $reader The) Initializes a new AnnotationDriver that uses the given AnnotationReader for reading docblock annotations. |
Method Summary | |
---|---|
void | addPaths(array paths) Append lookup paths to metadata driver. |
static AnnotationDriver | create(array|string paths, AnnotationReader reader) Factory method for the Annotation Driver |
void | {@inheritDoc} |
void | Get the file extension used to look for mapping files under |
array | getPaths() Retrieve the defined metadata lookup paths. |
boolean | isTransient(string className) Whether the class with the specified name is transient. |
void | loadMetadataForClass(mixed className, mixed metadata) {@inheritdoc} |
void | setFileExtension(string fileExtension) Set the file extension used to look for mapping files under |
protected mixed $_classNames
protected string $_fileExtension = '.php'
The file extension of mapping documents.
protected array $_paths = array()
The paths where to look for mapping files.
public AnnotationDriver(mixed reader, string|array paths, $reader The)
Initializes a new AnnotationDriver that uses the given AnnotationReader for reading docblock annotations.
public void addPaths(array paths)
Append lookup paths to metadata driver.
public static AnnotationDriver create(array|string paths, AnnotationReader reader)
Factory method for the Annotation Driver
public void getAllClassNames()
public void getFileExtension()
Get the file extension used to look for mapping files under
public array getPaths()
Retrieve the defined metadata lookup paths.
public boolean isTransient(string className)
Whether the class with the specified name is transient. Only non-transient classes, that is entities and mapped superclasses, should have their metadata loaded. A class is non-transient if it is annotated with either @Entity or
public void loadMetadataForClass(mixed className, mixed metadata)
public void setFileExtension(string fileExtension)
Set the file extension used to look for mapping files under
The AnnotationDriver reads the mapping metadata from docblock annotations.