PHP Класс Doctrine\ODM\CouchDB\Mapping\ClassMetadataFactory

С версии: 1.0
Автор: Benjamin Eberlei ([email protected])
Автор: Lukas Kahwe Smith ([email protected])
Наследование: extends Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( DocumentManager $dm ) Creates a new factory instance that uses the given DocumentManager instance.
getAllMetadata ( ) : array Forces the factory to load the metadata of all classes known to the underlying mapping driver.
getMetadataFor ( string $className ) : ClassMetadata Gets the class metadata descriptor for a class.

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

Метод Описание
doLoadMetadata ( $class, $parent, $rootEntityFound, array $nonSuperclassParents )
getDriver ( )
getFqcnFromAlias ( $namespaceAlias, $simpleClassName )
initialize ( )
initializeReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService )
isEntity ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class ) {@inheritDoc}
loadMetadata ( string $className ) : array 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 ClassMetadata instance for the given class name.
wakeupReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService )

Приватные методы

Метод Описание
addAssociationsMapping ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ClassMetadata $parent )
addFieldMapping ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ClassMetadata $parent )
addIndexes ( ClassMetadata $class, ClassMetadata $parent )
validateMapping ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class ) Check for any possible shortcomings in the class:

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

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

Creates a new factory instance that uses the given DocumentManager instance.
public __construct ( DocumentManager $dm )
$dm Doctrine\ODM\CouchDB\DocumentManager The DocumentManager instance

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

protected doLoadMetadata ( $class, $parent, $rootEntityFound, array $nonSuperclassParents )
$nonSuperclassParents array

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.

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

protected getDriver ( )

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

protected getFqcnFromAlias ( $namespaceAlias, $simpleClassName )

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

Gets the class metadata descriptor for a class.
public getMetadataFor ( string $className ) : ClassMetadata
$className string The name of the class.
Результат ClassMetadata

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

protected initialize ( )

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

protected initializeReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService )
$class Doctrine\Common\Persistence\Mapping\ClassMetadata
$reflService Doctrine\Common\Persistence\Mapping\ReflectionService

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

{@inheritDoc}
protected isEntity ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class )
$class Doctrine\Common\Persistence\Mapping\ClassMetadata

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

Loads the metadata of the class in question and all it's ancestors whose metadata is still not loaded.
protected loadMetadata ( string $className ) : array
$className string The name of the class for which the metadata should get loaded.
Результат array

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

Creates a new ClassMetadata instance for the given class name.
protected newClassMetadataInstance ( string $className ) : ClassMetadata
$className string
Результат ClassMetadata

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

protected wakeupReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService )
$class Doctrine\Common\Persistence\Mapping\ClassMetadata
$reflService Doctrine\Common\Persistence\Mapping\ReflectionService