PHP Class Doctrine\SkeletonMapper\Mapping\ClassMetadataFactory

Author: Jonathan H. Wage ([email protected])
Inheritance: implements Doctrine\Common\Persistence\Mapping\ClassMetadataFactory
Datei anzeigen Open project: doctrine/skeleton-mapper Class Usage Examples

Protected Properties

Property Type Description
$classes array

Public Methods

Method Description
__construct ( Doctrine\SkeletonMapper\Mapping\ClassMetadataInstantiatorInterface $classMetadataInstantiator )
getAllMetadata ( ) : array Returns all mapped classes.
getMetadataFor ( string $className ) : Doctrine\SkeletonMapper\Mapping\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.
isTransient ( string $className ) : boolean Returns whether the class with the specified name should have its metadata loaded.
setMetadataFor ( string $className, Doctrine\SkeletonMapper\Mapping\ClassMetadata $class ) Sets the metadata descriptor for a specific class.

Method Details

__construct() public method

public __construct ( Doctrine\SkeletonMapper\Mapping\ClassMetadataInstantiatorInterface $classMetadataInstantiator )
$classMetadataInstantiator Doctrine\SkeletonMapper\Mapping\ClassMetadataInstantiatorInterface

getAllMetadata() public method

Returns all mapped classes.
public getAllMetadata ( ) : array
return array The ClassMetadata instances of all mapped classes.

getMetadataFor() public method

Gets the class metadata descriptor for a class.
public getMetadataFor ( string $className ) : Doctrine\SkeletonMapper\Mapping\ClassMetadata
$className string The name of the class.
return Doctrine\SkeletonMapper\Mapping\ClassMetadata

hasMetadataFor() public method

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

isTransient() public method

This is only the case if it is either mapped directly or as a MappedSuperclass.
public isTransient ( string $className ) : boolean
$className string
return boolean

setMetadataFor() public method

Sets the metadata descriptor for a specific class.
public setMetadataFor ( string $className, Doctrine\SkeletonMapper\Mapping\ClassMetadata $class )
$className string
$class Doctrine\SkeletonMapper\Mapping\ClassMetadata

Property Details

$classes protected_oe property

protected array $classes
return array