PHP Класс lithium\data\collection\DocumentSet

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

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

Свойство Тип Описание
$_original array Contains the original database value of the array. This value will be compared with the current value ($_data) to calculate the changes that should be sent to the database.

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

Метод Описание
export ( array $options = [] )
modified ( ) : boolean Determines if the DocumentSet has been modified since it was last saved
sync ( $id = null, array $data = [], array $options = [] )
to ( string $format, array $options = [] ) : mixed Adds conversions checks to ensure certain class types and embedded values are properly cast.

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

Метод Описание
_init ( )
_populate ( ) : mixed Extract the next item from the result ressource and wraps it into a Document object.
_set ( mixed $data = null, null | integer | string $offset = null, array $options = [] ) : mixed Helper method to normalize and set data.

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

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

protected _init ( )

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

Extract the next item from the result ressource and wraps it into a Document object.
protected _populate ( ) : mixed
Результат mixed Returns the next `Document` if exists. Returns `null` otherwise

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

Helper method to normalize and set data.
protected _set ( mixed $data = null, null | integer | string $offset = null, array $options = [] ) : mixed
$data mixed
$offset null | integer | string
$options array
Результат mixed The (potentially) cast data.

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

public export ( array $options = [] )
$options array

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

Determines if the DocumentSet has been modified since it was last saved
public modified ( ) : boolean
Результат boolean

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

public sync ( $id = null, array $data = [], array $options = [] )
$data array
$options array

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

Adds conversions checks to ensure certain class types and embedded values are properly cast.
public to ( string $format, array $options = [] ) : mixed
$format string Currently only `array` is supported.
$options array
Результат mixed

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

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

Contains the original database value of the array. This value will be compared with the current value ($_data) to calculate the changes that should be sent to the database.
protected array $_original
Результат array