PHP Класс Doctrine\ODM\OrientDB\Mapper\ClassMetadata

Наследование: implements Doctrine\Common\Persistence\Mapping\ClassMetadata
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$associations
$class
$fields
$identifierPropertyName
$refClass
$reflFields

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

Метод Описание
__construct ( string $className ) Instantiates a new Metadata for the given $className.
getAssociationMappedByTargetField ( string $assocName ) : string
getAssociationNames ( ) : Array A numerically indexed list of association names of this persistent class.
getAssociationTargetClass ( string $assocName ) : string Returns the target class name of the given association.
getFieldNames ( ) : Array A numerically indexed list of field names of this persistent class.
getIdentifier ( ) : array Gets the mapped identifier field name.
getIdentifierFieldNames ( ) : array
getIdentifierValues ( object $object ) : array
getName ( ) : string Get fully-qualified class name of this persistent class.
getReflectionClass ( ) : ReflectionClass Gets the ReflectionClass instance for this mapped class.
getReflectionFields ( )
getReflectionProperties ( )
getRidPropertyName ( ) : string PHP 5.3, no array dereferencing.
getTypeOfField ( string $fieldName ) : string Returns a type name of this field.
hasAssociation ( string $fieldName ) : boolean Checks if the given field is a mapped association for this class.
hasField ( string $property ) : boolean Checks if the given field is a mapped property for this class.
isAssociationInverseSide ( string $assocName ) : boolean
isCollectionValuedAssociation ( string $fieldName ) : boolean Checks if the given field is a mapped collection valued association for this class.
isIdentifier ( string $fieldName ) : boolean Checks if the given field name is a mapped identifier for this class.
isSingleValuedAssociation ( string $fieldName ) : boolean Checks if the given field is a mapped single valued association for this class.
setAssociations ( array $associations )
setDocumentValue ( mixed $document, string $property, string $value ) Given a $property and its $value, sets that property on the given $document by using a closures if available, otherwise fall back to reflection.
setFields ( array $fields )
setIdentifier ( $property )

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

Метод Описание
discoverReflectionFields ( )
getAssociation ( string $field ) : string Returns the association mapped for the given $field.
getAssociations ( ) : Array Returns all the possible associations mapped in the introspected class.
getField ( string $field ) : Property Returns the reflection property associated with the $field.
getFieldByProperty ( $property ) : Property Returns the reflection property associated with the $property.
getFields ( ) : Array Returns all the fields of the introspected class.
isValuedAssociation ( string $field, array $associationTypes ) : boolean Checks whether the $field is mapped as an association.

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

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

Instantiates a new Metadata for the given $className.
public __construct ( string $className )
$className string

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

protected discoverReflectionFields ( )

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

Returns the association mapped for the given $field.
protected getAssociation ( string $field ) : string
$field string
Результат string

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

public getAssociationMappedByTargetField ( string $assocName ) : string
$assocName string
Результат string

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

This array includes identifier associations if present on this class.
public getAssociationNames ( ) : Array
Результат Array

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

Returns the target class name of the given association.
public getAssociationTargetClass ( string $assocName ) : string
$assocName string
Результат string

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

Returns all the possible associations mapped in the introspected class.
protected getAssociations ( ) : Array
Результат Array

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

Returns the reflection property associated with the $field.
protected getField ( string $field ) : Property
$field string
Результат Doctrine\ODM\OrientDB\Mapper\Annotations\Property

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

Returns the reflection property associated with the $property.
protected getFieldByProperty ( $property ) : Property
Результат Doctrine\ODM\OrientDB\Mapper\Annotations\Property

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

This array includes identifier fields if present on this class.
public getFieldNames ( ) : Array
Результат Array

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

Returns all the fields of the introspected class.
protected getFields ( ) : Array
Результат Array

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

The returned structure is an array of the identifier field names.
public getIdentifier ( ) : array
Результат array

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

public getIdentifierFieldNames ( ) : array
Результат array

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

public getIdentifierValues ( object $object ) : array
$object object
Результат array

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

Get fully-qualified class name of this persistent class.
public getName ( ) : string
Результат string

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

Gets the ReflectionClass instance for this mapped class.
public getReflectionClass ( ) : ReflectionClass
Результат ReflectionClass

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

public getReflectionFields ( )

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

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

.
public getRidPropertyName ( ) : string
Результат string

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

This type names can be implementation specific but should at least include the php types: integer, string, boolean, float/double, datetime.
public getTypeOfField ( string $fieldName ) : string
$fieldName string
Результат string

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

Checks if the given field is a mapped association for this class.
public hasAssociation ( string $fieldName ) : boolean
$fieldName string
Результат boolean

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

Checks if the given field is a mapped property for this class.
public hasField ( string $property ) : boolean
$property string The name of the property to which the field is mapped
Результат boolean

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

public isAssociationInverseSide ( string $assocName ) : boolean
$assocName string
Результат boolean

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

Checks if the given field is a mapped collection valued association for this class.
public isCollectionValuedAssociation ( string $fieldName ) : boolean
$fieldName string
Результат boolean

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

Checks if the given field name is a mapped identifier for this class.
public isIdentifier ( string $fieldName ) : boolean
$fieldName string
Результат boolean

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

Checks if the given field is a mapped single valued association for this class.
public isSingleValuedAssociation ( string $fieldName ) : boolean
$fieldName string
Результат boolean

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

Checks whether the $field is mapped as an association.
protected isValuedAssociation ( string $field, array $associationTypes ) : boolean
$field string
$associationTypes array
Результат boolean

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

public setAssociations ( array $associations )
$associations array

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

Given a $property and its $value, sets that property on the given $document by using a closures if available, otherwise fall back to reflection.
public setDocumentValue ( mixed $document, string $property, string $value )
$document mixed
$property string
$value string

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

public setFields ( array $fields )
$fields array

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

public setIdentifier ( $property )

Описание свойств

$associations защищенное свойство

protected $associations

$class защищенное свойство

protected $class

$fields защищенное свойство

protected $fields

$identifierPropertyName защищенное свойство

protected $identifierPropertyName

$refClass защищенное свойство

protected $refClass

$reflFields защищенное свойство

protected $reflFields