메소드 | 설명 | |
---|---|---|
__construct ( Puli\Repository\Api\ChangeStream\ChangeStream $changeStream = null ) | Create the repository. | |
add ( $path, $resource ) | ||
clear ( ) | ||
contains ( $query, $language = 'glob' ) | ||
find ( $query, $language = 'glob' ) | ||
get ( $path ) | ||
hasChildren ( $path ) | ||
listChildren ( $path ) | ||
remove ( $query, $language = 'glob' ) |
메소드 | 설명 | |
---|---|---|
getGlobIterator ( string $glob ) : |
Returns an iterator for a glob. |
메소드 | 설명 | |
---|---|---|
addResource ( $path, Puli\Repository\Api\Resource\PuliResource $resource ) | ||
ensureDirectoryExists ( string $path ) | Recursively creates a directory for a path. | |
getChildIterator ( Puli\Repository\Api\Resource\PuliResource $resource ) : |
Returns an iterator for the children of a resource. | |
removeResource ( Puli\Repository\Api\Resource\PuliResource $resource ) |
public __construct ( Puli\Repository\Api\ChangeStream\ChangeStream $changeStream = null ) | ||
$changeStream | Puli\Repository\Api\ChangeStream\ChangeStream | If provided, the repository will log resources changes in this change stream. |
protected getGlobIterator ( string $glob ) : |
||
$glob | string | The glob. |
리턴 | The iterator. |