PHP 클래스 Doctrine\ODM\OrientDB\Mapper\ClassMetadata

상속: implements Doctrine\Common\Persistence\Mapping\ClassMetadata
파일 보기 프로젝트 열기: doctrine/orientdb-odm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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