PHP Класс lithium\data\DocumentSchema

Наследование: extends Schema
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_classes
$_handlers

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

Метод Описание
cast ( $object, $key, $data, array $options = [] )

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

Метод Описание
_castArray ( $object, $val, $pathKey, $options, $defaults )
_castType ( mixed $value, string $field ) : mixed Casts a scalar (non-object/array) value to its corresponding database-native value or custom value object based on a handler assigned to $field's data type.
_init ( )

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

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

protected _castArray ( $object, $val, $pathKey, $options, $defaults )

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

Casts a scalar (non-object/array) value to its corresponding database-native value or custom value object based on a handler assigned to $field's data type.
protected _castType ( mixed $value, string $field ) : mixed
$value mixed The value to be cast.
$field string The name of the field that `$value` is or will be stored in. If it is a nested field, `$field` should be the full dot-separated path to the sub-object's field.
Результат mixed Returns the result of `$value`, modified by a matching handler data type handler, if available.

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

protected _init ( )

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

public cast ( $object, $key, $data, array $options = [] )
$options array

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

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

protected $_classes

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

protected $_handlers