PHP 클래스 Doctrine\ODM\OrientDB\Mapper\Hydration\Hydrator

저자: Alessandro Nadalin ([email protected])
저자: David Funaro ([email protected])
저자: Tamás Millián ([email protected])
파일 보기 프로젝트 열기: doctrine/orientdb-odm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$binding
$cache
$castedProperties
$caster
$clusterMap
$enableMismatchesTolerance
$inflector
$metadataFactory
$proxyFactory
$uow

공개 메소드들

메소드 설명
__construct ( UnitOfWork $uow )
enableMismatchesTolerance ( boolean $tolerate ) Sets whether the Hydrator should tolerate mismatches during hydration.
hydrate ( stdClass $orientObject, Doctrine\ODM\OrientDB\Proxy\Proxy $proxy = null ) : Result Takes an Doctrine\OrientDB JSON object and finds the class responsible to map that object.
hydrateCollection ( array $collection ) : Doctrine\ODM\OrientDB\Collections\ArrayCollection Hydrates an array of documents.
hydrateRid ( Rid $rid )
load ( array $rids, string $fetchPlan = null ) : mixed
toleratesMismatches ( ) : boolean Checks whether the Hydrator throws exceptions or not when encountering an mismatch error during hydration.

보호된 메소드들

메소드 설명
castProperty ( Property $annotation, mixed $propertyValue ) : mixed Casts a value according to how it was annotated.
createDocument ( string $class, stdClass $orientObject ) : object Either tries to get the proxy
fill ( object $document, stdClass $object ) : object Given an object and an Orient-object, it fills the former with the latter.
getCache ( ) : Doctrine\Common\Cache\Cache Returns the caching layer of the mapper.
getCastedPropertyCacheKey ( $type, $value )
getCaster ( ) : Caster Returns the caster instance.
getMetadataFactory ( ) : ClassMetadataFactory Returns the MetadataFactor.
getProxyFactory ( ) : ProxyFactory Returns the ProxyFactory to which the hydrator is attached.
getUnitOfWork ( )
hydrateValue ( $value, Property $annotation ) : mixed | null Hydrates the value
verifyCastingSupport ( Caster $caster, string $method, string $annotationType ) Verifies if the given $caster supports casting with $method.

메소드 상세

__construct() 공개 메소드

public __construct ( UnitOfWork $uow )
$uow Doctrine\ODM\OrientDB\UnitOfWork

castProperty() 보호된 메소드

Casts a value according to how it was annotated.
protected castProperty ( Property $annotation, mixed $propertyValue ) : mixed
$annotation Doctrine\ODM\OrientDB\Mapper\Annotations\Property
$propertyValue mixed
리턴 mixed

createDocument() 보호된 메소드

Either tries to get the proxy
protected createDocument ( string $class, stdClass $orientObject ) : object
$class string
$orientObject stdClass
리턴 object of type $class

enableMismatchesTolerance() 공개 메소드

Sets whether the Hydrator should tolerate mismatches during hydration.
public enableMismatchesTolerance ( boolean $tolerate )
$tolerate boolean

fill() 보호된 메소드

Given an object and an Orient-object, it fills the former with the latter.
protected fill ( object $document, stdClass $object ) : object
$document object
$object stdClass
리턴 object

getCache() 보호된 메소드

Returns the caching layer of the mapper.
protected getCache ( ) : Doctrine\Common\Cache\Cache
리턴 Doctrine\Common\Cache\Cache

getCastedPropertyCacheKey() 보호된 메소드

protected getCastedPropertyCacheKey ( $type, $value )

getCaster() 보호된 메소드

Returns the caster instance.
protected getCaster ( ) : Caster
리턴 Doctrine\ODM\OrientDB\Caster\Caster

getMetadataFactory() 보호된 메소드

Returns the MetadataFactor.
protected getMetadataFactory ( ) : ClassMetadataFactory
리턴 Doctrine\ODM\OrientDB\Mapper\ClassMetadataFactory

getProxyFactory() 보호된 메소드

Returns the ProxyFactory to which the hydrator is attached.
protected getProxyFactory ( ) : ProxyFactory
리턴 Doctrine\ODM\OrientDB\Proxy\ProxyFactory

getUnitOfWork() 보호된 메소드

protected getUnitOfWork ( )

hydrate() 공개 메소드

If the class is found, a new POPO is instantiated and the properties inside the JSON object are filled accordingly.
public hydrate ( stdClass $orientObject, Doctrine\ODM\OrientDB\Proxy\Proxy $proxy = null ) : Result
$orientObject stdClass
$proxy Doctrine\ODM\OrientDB\Proxy\Proxy
리턴 Result

hydrateCollection() 공개 메소드

Hydrates an array of documents.
public hydrateCollection ( array $collection ) : Doctrine\ODM\OrientDB\Collections\ArrayCollection
$collection array
리턴 Doctrine\ODM\OrientDB\Collections\ArrayCollection

hydrateRid() 공개 메소드

public hydrateRid ( Rid $rid )
$rid Doctrine\ODM\OrientDB\Types\Rid

hydrateValue() 보호된 메소드

Hydrates the value
protected hydrateValue ( $value, Property $annotation ) : mixed | null
$value
$annotation Doctrine\ODM\OrientDB\Mapper\Annotations\Property
리턴 mixed | null

load() 공개 메소드

public load ( array $rids, string $fetchPlan = null ) : mixed
$rids array
$fetchPlan string
리턴 mixed

toleratesMismatches() 공개 메소드

Checks whether the Hydrator throws exceptions or not when encountering an mismatch error during hydration.
public toleratesMismatches ( ) : boolean
리턴 boolean

verifyCastingSupport() 보호된 메소드

If not, an exception is raised.
protected verifyCastingSupport ( Caster $caster, string $method, string $annotationType )
$caster Doctrine\ODM\OrientDB\Caster\Caster
$method string
$annotationType string

프로퍼티 상세

$binding 보호되어 있는 프로퍼티

protected $binding

$cache 보호되어 있는 프로퍼티

protected $cache

$castedProperties 보호되어 있는 프로퍼티

protected $castedProperties

$caster 보호되어 있는 프로퍼티

protected $caster

$clusterMap 보호되어 있는 프로퍼티

protected $clusterMap

$enableMismatchesTolerance 보호되어 있는 프로퍼티

protected $enableMismatchesTolerance

$inflector 보호되어 있는 프로퍼티

protected $inflector

$metadataFactory 보호되어 있는 프로퍼티

protected $metadataFactory

$proxyFactory 보호되어 있는 프로퍼티

protected $proxyFactory

$uow 보호되어 있는 프로퍼티

protected $uow