PHP 인터페이스 Doctrine\ODM\OrientDB\Caster\CasterInterface

파일 보기 프로젝트 열기: doctrine/orientdb-odm

공개 메소드들

메소드 설명
castBinary ( ) : string Casts the given $value to a binary.
castBoolean ( ) : boolean Casts the given $value to boolean.
castByte ( ) : mixed Casts the given $value to a byte.
castDate ( ) : DateTime Casts the given $value to a DateTime object.
castDateTime ( ) : DateTime Casts the given $value to a DateTime object.
castDouble ( ) : float Casts the given $value to a double (well.
castEmbedded ( ) : mixed Given an embedded record, it uses the mapper to hydrate it.
castEmbeddedList ( ) : Array Casts a list of embedded entities
castEmbeddedMap ( ) : Array Casts a map (key-value preserved) of embedded entities
castEmbeddedSet ( ) : Array Casts a set of embedded entities
castFloat ( ) : float Casts the value to a float.
castInBuffer ( integer $limit, string $type ) : integer Casts the current value into an integer verifying it belongs to a certain range ( -$limit < $value > + $limit ).
castInteger ( ) : integer Casts the value into an integer.
castLink ( ) : mixed | null Casts the current internal value into an hydrated object through a Doctrine\OrientDB\ODM\Mapper object, finding it by rid.
castLinklist ( ) : Array Hydrates multiple objects through a Mapper.
castLinkmap ( ) : Array Hydrates multiple objects through a Mapper.
castLinkset ( ) : Array Hydrates multiple objects through a Mapper.
castLong ( ) : mixed Casts the given $value to a long.
castShort ( ) : mixed Casts the value to a short.
castString ( ) : string Casts the value to string.
setProperty ( string $key, mixed $property ) Defines properties that can be internally used by the caster.
setValue ( mixed $value ) Sets the internal value to work with.

메소드 상세

castBinary() 공개 메소드

Casts the given $value to a binary.
public castBinary ( ) : string
리턴 string

castBoolean() 공개 메소드

Casts the given $value to boolean.
public castBoolean ( ) : boolean
리턴 boolean

castByte() 공개 메소드

Casts the given $value to a byte.
public castByte ( ) : mixed
리턴 mixed

castDate() 공개 메소드

Casts the given $value to a DateTime object.
public castDate ( ) : DateTime
리턴 DateTime

castDateTime() 공개 메소드

Casts the given $value to a DateTime object.
public castDateTime ( ) : DateTime
리턴 DateTime

castDouble() 공개 메소드

.. float).
public castDouble ( ) : float
리턴 float

castEmbedded() 공개 메소드

Given an embedded record, it uses the mapper to hydrate it.
public castEmbedded ( ) : mixed
리턴 mixed

castEmbeddedList() 공개 메소드

Casts a list of embedded entities
public castEmbeddedList ( ) : Array
리턴 Array

castEmbeddedMap() 공개 메소드

Casts a map (key-value preserved) of embedded entities
public castEmbeddedMap ( ) : Array
리턴 Array

castEmbeddedSet() 공개 메소드

Casts a set of embedded entities
public castEmbeddedSet ( ) : Array
리턴 Array

castFloat() 공개 메소드

Casts the value to a float.
public castFloat ( ) : float
리턴 float

castInBuffer() 공개 메소드

Casts the current value into an integer verifying it belongs to a certain range ( -$limit < $value > + $limit ).
public castInBuffer ( integer $limit, string $type ) : integer
$limit integer
$type string
리턴 integer

castInteger() 공개 메소드

Casts the value into an integer.
public castInteger ( ) : integer
리턴 integer

castLinkmap() 공개 메소드

Hydrates multiple objects through a Mapper.
public castLinkmap ( ) : Array
리턴 Array

castLinkset() 공개 메소드

Hydrates multiple objects through a Mapper.
public castLinkset ( ) : Array
리턴 Array

castLong() 공개 메소드

Casts the given $value to a long.
public castLong ( ) : mixed
리턴 mixed

castShort() 공개 메소드

Casts the value to a short.
public castShort ( ) : mixed
리턴 mixed

castString() 공개 메소드

Casts the value to string.
public castString ( ) : string
리턴 string

setProperty() 공개 메소드

Defines properties that can be internally used by the caster.
public setProperty ( string $key, mixed $property )
$key string
$property mixed

setValue() 공개 메소드

Sets the internal value to work with.
public setValue ( mixed $value )
$value mixed