PHP 클래스 Locker\Repository\Statement\EloquentLinker

상속: extends EloquentReader, implements Locker\Repository\Statement\LinkerInterface
파일 보기 프로젝트 열기: learninglocker/learninglocker

공개 메소드들

메소드 설명
updateReferences ( array $statements, StoreOptions $opts ) Updates statement references.

보호된 메소드들

메소드 설명
getModel ( String $statement_id, StoreOptions $opts ) : [Model] Gets the statement as an associative array from the database.
getModels ( [\stdClass] $statements, StoreOptions $opts ) : [Model] Gets the statements as an array from the database.
isReferencing ( stdClass $statement ) : boolean Determines if a statement is a referencing statement.

비공개 메소드들

메소드 설명
downLink ( Model $model, array $visited, StoreOptions $opts ) : [Model] Goes down the reference chain setting references (refs).
downRef ( stdClass $statement, StoreOptions $opts ) : Model Gets the statement referred to by the given statement.
eagerLoadUpRefs ( array $statement_ids, StoreOptions $opts ) : [\stdClass] Gets the statements referencing the given statement ids.
fetchUpRefs ( stdClass $statement, StoreOptions $opts ) : [\stdClass] Gets the statements referencing the given statement from the database
setRefs ( stdClass $statement, array $refs, StoreOptions $opts ) Updates the refs for the given statement.
unQueue ( Model $model ) Unqueues the statement so that it doesn't get relinked.
upLink ( Model $model, array $visited, StoreOptions $opts, $useInitialUpRefs = false ) : [Model] Goes up the reference chain until it reaches the top then goes down setting references.
upRefs ( stdClass $statement, StoreOptions $opts, boolean $useInitialUpRefs ) : [\stdClass] Gets the statements referencing the given statement.

메소드 상세

getModel() 보호된 메소드

Gets the statement as an associative array from the database.
protected getModel ( String $statement_id, StoreOptions $opts ) : [Model]
$statement_id String Statement's UUID.
$opts StoreOptions
리턴 [Model]

getModels() 보호된 메소드

Gets the statements as an array from the database.
protected getModels ( [\stdClass] $statements, StoreOptions $opts ) : [Model]
$statements [\stdClass]
$opts StoreOptions
리턴 [Model]

isReferencing() 보호된 메소드

Determines if a statement is a referencing statement.
protected isReferencing ( stdClass $statement ) : boolean
$statement stdClass
리턴 boolean

updateReferences() 공개 메소드

Updates statement references.
public updateReferences ( array $statements, StoreOptions $opts )
$statements array
$opts StoreOptions