PHP 클래스 Doctrine\OXM\Mapping\ClassMetadataFactory

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

공개 메소드들

메소드 설명
__construct ( Configuration $configuration, Doctrine\Common\EventManager $evm = null ) : null
getAllMetadata ( ) : array Forces the factory to load the metadata of all classes known to the underlying mapping driver.
getAllXmlNodes ( ) : array Preloads all metadata and returns an array of all known mapped node types
getCacheDriver ( ) : Doctrine\Common\Cache\Cache Gets the cache driver used by the factory to cache ClassMetadata instances.
getLoadedMetadata ( ) : array
getMetadataFor ( string $className ) : ClassMetadata Gets the class metadata descriptor for a class.
hasMetadataFor ( string $className ) : boolean Checks whether the factory has the metadata for a class loaded already.
setCacheDriver ( Doctrine\Common\Cache\Cache $cacheDriver ) Sets the cache driver used by the factory to cache Mapping instances.
setMetadataFor ( string $className, ClassMapping $class ) Sets the metadata descriptor for a specific class.

보호된 메소드들

메소드 설명
getParentClasses ( string $name ) : array Get array of parent classes for the given entity class
loadMetadata ( string $name ) Loads the metadata of the class in question and all it's ancestors whose metadata is still not loaded.
newClassMetadataInstance ( string $className ) : ClassMetadata Creates a new Mapping instance for the given class name.

비공개 메소드들

메소드 설명
addInheritedFields ( ClassMetadata $subClass, ClassMetadata $parentClass ) Adds inherited fields to the subclass mapping.
completeIdGeneratorMapping ( ClassMetadataInfo $class ) Completes the ID generator mapping. If "auto" is specified we choose the generator most appropriate.
completeMappingTypeValidation ( string $className, ClassMetadataInfo $class ) Complete and validate type mappings
initialize ( ) Lazy initialization of this stuff, especially the metadata driver, since these are not needed at all when a metadata cache is active.

메소드 상세

__construct() 공개 메소드

public __construct ( Configuration $configuration, Doctrine\Common\EventManager $evm = null ) : null
$configuration Doctrine\OXM\Configuration
$evm Doctrine\Common\EventManager
리턴 null

getAllMetadata() 공개 메소드

Forces the factory to load the metadata of all classes known to the underlying mapping driver.
public getAllMetadata ( ) : array
리턴 array The ClassMetadata instances of all mapped classes.

getAllXmlNodes() 공개 메소드

Preloads all metadata and returns an array of all known mapped node types
public getAllXmlNodes ( ) : array
리턴 array

getCacheDriver() 공개 메소드

Gets the cache driver used by the factory to cache ClassMetadata instances.
public getCacheDriver ( ) : Doctrine\Common\Cache\Cache
리턴 Doctrine\Common\Cache\Cache

getLoadedMetadata() 공개 메소드

public getLoadedMetadata ( ) : array
리턴 array

getMetadataFor() 공개 메소드

Gets the class metadata descriptor for a class.
public getMetadataFor ( string $className ) : ClassMetadata
$className string The name of the class.
리턴 ClassMetadata

getParentClasses() 보호된 메소드

Get array of parent classes for the given entity class
protected getParentClasses ( string $name ) : array
$name string
리턴 array $parentClasses

hasMetadataFor() 공개 메소드

Checks whether the factory has the metadata for a class loaded already.
public hasMetadataFor ( string $className ) : boolean
$className string
리턴 boolean TRUE if the metadata of the class in question is already loaded, FALSE otherwise.

loadMetadata() 보호된 메소드

Loads the metadata of the class in question and all it's ancestors whose metadata is still not loaded.
protected loadMetadata ( string $name )
$name string The name of the class for which the metadata should get loaded.

newClassMetadataInstance() 보호된 메소드

Creates a new Mapping instance for the given class name.
protected newClassMetadataInstance ( string $className ) : ClassMetadata
$className string
리턴 ClassMetadata

setCacheDriver() 공개 메소드

Sets the cache driver used by the factory to cache Mapping instances.
public setCacheDriver ( Doctrine\Common\Cache\Cache $cacheDriver )
$cacheDriver Doctrine\Common\Cache\Cache

setMetadataFor() 공개 메소드

NOTE: This is only useful in very special cases, like when generating proxy classes.
public setMetadataFor ( string $className, ClassMapping $class )
$className string
$class ClassMapping