PHP Class Nextras\Orm\Entity\Reflection\MetadataParser

显示文件 Open project: nextras/orm Class Usage Examples

Protected Properties

Property Type Description
$currentReflection Nette\Reflection\ClassType
$entityClassesMap array
$metadata EntityMetadata
$modifierParser ModifierParser
$modifiers array
$reflection Nette\Reflection\ClassType

Public Methods

Method Description
__construct ( array $entityClassesMap )
addModifier ( string $modifier, callable $processor ) : self Adds modifier processor.
parseMetadata ( $class, &$fileDependencies )

Protected Methods

Method Description
initPrimaryKey ( )
loadGettersSetters ( )
loadProperties ( &$fileDependencies )
makeFQN ( $name )
parseAnnotationTypes ( PropertyMetadata $property, $typesString )
parseAnnotationValue ( PropertyMetadata $property, $propertyComment )
parseAnnotations ( ClassType $reflection )
parseContainer ( PropertyMetadata $property, array &$args )
parseDefault ( PropertyMetadata $property, array &$args )
parseEnum ( PropertyMetadata $property, array &$args )
parseManyHasMany ( PropertyMetadata $property, array &$args )
parseManyHasOne ( PropertyMetadata $property, array &$args )
parseOneHasMany ( PropertyMetadata $property, array &$args )
parseOneHasOne ( PropertyMetadata $property, array &$args )
parsePrimary ( PropertyMetadata $property )
parsePrimaryProxy ( PropertyMetadata $property )
parseVirtual ( PropertyMetadata $property )
processPropertyModifier ( PropertyMetadata $property, $modifier, array $args )

Private Methods

Method Description
processRelationshipCascade ( array &$args, PropertyMetadata $property )
processRelationshipEntityProperty ( array &$args, PropertyMetadata $property )
processRelationshipIsMain ( array &$args, PropertyMetadata $property )
processRelationshipOrder ( array &$args, PropertyMetadata $property )

Method Details

__construct() public method

public __construct ( array $entityClassesMap )
$entityClassesMap array

addModifier() public method

Adds modifier processor.
public addModifier ( string $modifier, callable $processor ) : self
$modifier string
$processor callable
return self

initPrimaryKey() protected method

protected initPrimaryKey ( )

loadGettersSetters() protected method

protected loadGettersSetters ( )

loadProperties() protected method

protected loadProperties ( &$fileDependencies )

makeFQN() protected method

protected makeFQN ( $name )

parseAnnotationTypes() protected method

protected parseAnnotationTypes ( PropertyMetadata $property, $typesString )
$property PropertyMetadata

parseAnnotationValue() protected method

protected parseAnnotationValue ( PropertyMetadata $property, $propertyComment )
$property PropertyMetadata

parseAnnotations() protected method

protected parseAnnotations ( ClassType $reflection )
$reflection Nette\Reflection\ClassType

parseContainer() protected method

protected parseContainer ( PropertyMetadata $property, array &$args )
$property PropertyMetadata
$args array

parseDefault() protected method

protected parseDefault ( PropertyMetadata $property, array &$args )
$property PropertyMetadata
$args array

parseEnum() protected method

protected parseEnum ( PropertyMetadata $property, array &$args )
$property PropertyMetadata
$args array

parseManyHasMany() protected method

protected parseManyHasMany ( PropertyMetadata $property, array &$args )
$property PropertyMetadata
$args array

parseManyHasOne() protected method

protected parseManyHasOne ( PropertyMetadata $property, array &$args )
$property PropertyMetadata
$args array

parseMetadata() public method

public parseMetadata ( $class, &$fileDependencies )

parseOneHasMany() protected method

protected parseOneHasMany ( PropertyMetadata $property, array &$args )
$property PropertyMetadata
$args array

parseOneHasOne() protected method

protected parseOneHasOne ( PropertyMetadata $property, array &$args )
$property PropertyMetadata
$args array

parsePrimary() protected method

protected parsePrimary ( PropertyMetadata $property )
$property PropertyMetadata

parsePrimaryProxy() protected method

protected parsePrimaryProxy ( PropertyMetadata $property )
$property PropertyMetadata

parseVirtual() protected method

protected parseVirtual ( PropertyMetadata $property )
$property PropertyMetadata

processPropertyModifier() protected method

protected processPropertyModifier ( PropertyMetadata $property, $modifier, array $args )
$property PropertyMetadata
$args array

Property Details

$currentReflection protected_oe property

protected ClassType,Nette\Reflection $currentReflection
return Nette\Reflection\ClassType

$entityClassesMap protected_oe property

protected array $entityClassesMap
return array

$metadata protected_oe property

protected EntityMetadata,Nextras\Orm\Entity\Reflection $metadata
return EntityMetadata

$modifierParser protected_oe property

protected ModifierParser,Nextras\Orm\Entity\Reflection $modifierParser
return ModifierParser

$modifiers protected_oe property

protected array $modifiers
return array

$reflection protected_oe property

protected ClassType,Nette\Reflection $reflection
return Nette\Reflection\ClassType