PHP Класс Doctrine\ODM\OrientDB\Mapper\ClassMetadataFactory

Наследование: implements Doctrine\Common\Persistence\Mapping\ClassMetadataFactory
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$multipleAssociations
$singleAssociations

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

Свойство Тип Описание
$annotationReader
$cache
$classMap
$documentDirectories
$metadata

Открытые методы

Метод Описание
__construct ( Doctrine\ODM\OrientDB\Mapper\Annotations\ReaderInterface $annotationReader, Doctrine\Common\Cache\Cache $cache )
findClassMappingInDirectories ( string $OClass ) : string Tries to find the PHP class mapping Doctrine\OrientDB's $OClass in each of the directories where the documents are stored.
getAllMetadata ( )
getClassAnnotation ( string $class ) : Document Returns the annotation of a class.
getClassByPath ( string $file, string $namespace ) : string Returns the fully qualified name of a class by its path
getDocumentDirectories ( ) : array Returns the directories in which the mapper is going to look for classes mapped for the Doctrine\OrientDB ODM.
getMetadataFor ( $className ) : ClassMetadata
getObjectPropertyAnnotations ( mixed $document ) : array Returns all the annotations in the $document's properties.
getPropertyAnnotation ( ReflectionProperty $property ) : Property Returns the annotation of a property.
hasMetadataFor ( $className )
isTransient ( string $className ) : boolean Whether the class with the specified name should have its metadata loaded.
setDocumentDirectories ( array $directories ) Sets the directories in which the mapper is going to look for classes mapped for the Doctrine\OrientDB ODM.
setMetadataFor ( $className, $metadata )

Защищенные методы

Метод Описание
findClassMappingInDirectory ( string $OClass, string $directory, string $namespace ) : string | null Searches a PHP class mapping Doctrine\OrientDB's $OClass in $directory, which uses the given $namespace.
getAssociationTypes ( ) : Array Returns all the possible association types.
populateMetadata ( ClassMetadata $metadata )

Описание методов

__construct() публичный Метод

public __construct ( Doctrine\ODM\OrientDB\Mapper\Annotations\ReaderInterface $annotationReader, Doctrine\Common\Cache\Cache $cache )
$annotationReader Doctrine\ODM\OrientDB\Mapper\Annotations\ReaderInterface
$cache Doctrine\Common\Cache\Cache

findClassMappingInDirectories() публичный Метод

Tries to find the PHP class mapping Doctrine\OrientDB's $OClass in each of the directories where the documents are stored.
public findClassMappingInDirectories ( string $OClass ) : string
$OClass string
Результат string

findClassMappingInDirectory() защищенный Метод

Searches a PHP class mapping Doctrine\OrientDB's $OClass in $directory, which uses the given $namespace.
protected findClassMappingInDirectory ( string $OClass, string $directory, string $namespace ) : string | null
$OClass string
$directory string
$namespace string
Результат string | null

getAllMetadata() публичный Метод

public getAllMetadata ( )

getAssociationTypes() защищенный Метод

e.g. linklist, linkmap, link...
protected getAssociationTypes ( ) : Array
Результат Array

getClassAnnotation() публичный Метод

Returns the annotation of a class.
public getClassAnnotation ( string $class ) : Document
$class string
Результат Doctrine\ODM\OrientDB\Mapper\Annotations\Document

getClassByPath() публичный Метод

Returns the fully qualified name of a class by its path
public getClassByPath ( string $file, string $namespace ) : string
$file string
$namespace string
Результат string

getDocumentDirectories() публичный Метод

Returns the directories in which the mapper is going to look for classes mapped for the Doctrine\OrientDB ODM.
public getDocumentDirectories ( ) : array
Результат array

getMetadataFor() публичный Метод

public getMetadataFor ( $className ) : ClassMetadata
Результат ClassMetadata

getObjectPropertyAnnotations() публичный Метод

Returns all the annotations in the $document's properties.
public getObjectPropertyAnnotations ( mixed $document ) : array
$document mixed
Результат array

getPropertyAnnotation() публичный Метод

Returns the annotation of a property.
public getPropertyAnnotation ( ReflectionProperty $property ) : Property
$property ReflectionProperty
Результат Doctrine\ODM\OrientDB\Mapper\Annotations\Property

hasMetadataFor() публичный Метод

public hasMetadataFor ( $className )

isTransient() публичный Метод

This is only the case if it is either mapped directly or as a MappedSuperclass.
public isTransient ( string $className ) : boolean
$className string
Результат boolean

populateMetadata() защищенный Метод

protected populateMetadata ( ClassMetadata $metadata )
$metadata ClassMetadata

setDocumentDirectories() публичный Метод

Sets the directories in which the mapper is going to look for classes mapped for the Doctrine\OrientDB ODM.
public setDocumentDirectories ( array $directories )
$directories array

setMetadataFor() публичный Метод

public setMetadataFor ( $className, $metadata )

Описание свойств

$annotationReader защищенное свойство

protected $annotationReader

$cache защищенное свойство

protected $cache

$classMap защищенное свойство

protected $classMap

$documentDirectories защищенное свойство

protected $documentDirectories

$metadata защищенное свойство

protected $metadata

$multipleAssociations публичное статическое свойство

public static $multipleAssociations

$singleAssociations публичное статическое свойство

public static $singleAssociations