PHP 클래스 JamesMoss\Flywheel\Document

Represents a document in Flywheel. Essentially this is a Plain Old PHP Object (POPO). The only important property on this object is $id. It's used to ensure uniqueness when storing a document. You can set this yourself via the contructor or if omitted it will be autogenerated for you.
파일 보기 프로젝트 열기: jamesmoss/flywheel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$__flywheelDocId
$__flywheelInitialId

공개 메소드들

메소드 설명
__construct ( array $data = [] ) Constructor
getId ( ) : string Get the document ID.
getInitialId ( ) : string Get the initial document ID.
getNestedProperty ( $field, &$found = false )
setId ( string $id ) Set the document ID.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( array $data = [] )
$data array An associative array, each key/value pair will be turned into properties on this object.

getId() 공개 메소드

Get the document ID.
public getId ( ) : string
리턴 string

getInitialId() 공개 메소드

Get the initial document ID.
public getInitialId ( ) : string
리턴 string

getNestedProperty() 공개 메소드

public getNestedProperty ( $field, &$found = false )

setId() 공개 메소드

Set the document ID.
public setId ( string $id )
$id string

프로퍼티 상세

$__flywheelDocId 보호되어 있는 프로퍼티

protected $__flywheelDocId

$__flywheelInitialId 보호되어 있는 프로퍼티

protected $__flywheelInitialId