PHP Интерфейс Doctrine\ODM\OrientDB\Caster\CasterInterface

Показать файл Открыть проект

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

Метод Описание
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