Метод | Описание | |
---|---|---|
contains ( string $query, string $language = 'glob' ) : boolean | Returns whether any resources match a query. | |
find ( string $query, string $language = 'glob' ) : Puli\Repository\Api\ResourceCollection | Returns the resources matching a query. | |
get ( string $path ) : Puli\Repository\Api\Resource\PuliResource | Returns the resource at the given path. | |
getVersions ( string $path ) : |
Returns all versions of a resource. | |
hasChildren ( string $path ) : boolean | Returns whether a resource has child resources. | |
listChildren ( string $path ) : Puli\Repository\Api\ResourceCollection | Lists the child resources of a resource. |
public find ( string $query, string $language = 'glob' ) : Puli\Repository\Api\ResourceCollection | ||
$query | string | A resource query. |
$language | string | The language of the query. All implementations must support the language "glob". |
Результат | Puli\Repository\Api\ResourceCollection | The resources matching the query. |
public getVersions ( string $path ) : |
||
$path | string | The path to the resource. |
Результат | The versions stored for this path. |
public hasChildren ( string $path ) : boolean | ||
$path | string | The path to the resource. Must start with "/". "." and ".." segments in the path are supported. |
Результат | boolean | Returns `true` if the resource has child resources. |
public listChildren ( string $path ) : Puli\Repository\Api\ResourceCollection | ||
$path | string | The path to the resource. Must start with "/". "." and ".." segments in the path are supported. |
Результат | Puli\Repository\Api\ResourceCollection | The child resources of the resource. |