PHP 클래스 lithium\data\collection\DocumentSet

상속: extends lithium\data\Collection
파일 보기 프로젝트 열기: unionofrad/lithium 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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