PHP 클래스 Doctrine\ODM\OrientDB\Mapper\ClassMetadataFactory

상속: implements Doctrine\Common\Persistence\Mapping\ClassMetadataFactory
파일 보기 프로젝트 열기: doctrine/orientdb-odm 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$multipleAssociations
$singleAssociations

보호된 프로퍼티들

프로퍼티 타입 설명
$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