메소드 |
설명 |
|
attachTo ( Puli\Repository\Api\ResourceRepository $repo, string | null $path = null ) |
Attaches the resource to a repository. |
|
createReference ( string $path ) : static |
Creates a reference to the resource. |
|
detach ( ) |
Detaches the resource from the repository. |
|
getChild ( string $relPath ) : Puli\Repository\Api\Resource\PuliResource |
Returns the child resource with the given relative path. |
|
getMetadata ( ) : ResourceMetadata |
Returns metadata about a resource. |
|
getName ( ) : string | null |
Returns the name of the resource. |
|
getPath ( ) : string | null |
Returns the path of the resource. |
|
getRepository ( ) : Puli\Repository\Api\ResourceRepository | null |
Returns the repository that the resource is attached to. |
|
getRepositoryPath ( ) : string | null |
Returns the path of the resource in the repository. |
|
getVersions ( ) : VersionList |
Returns the versions of this resource. |
|
hasChild ( string $relPath ) : boolean |
Returns whether the child resource with the given relative path exists. |
|
hasChildren ( ) : boolean |
Returns whether the resource has child resources. |
|
isAttached ( ) : boolean |
Returns whether the resource is attached to a repository. |
|
isReference ( ) : boolean |
Returns whether a resource is a reference. |
|
listChildren ( ) : Puli\Repository\Api\ResourceCollection |
Lists the child resources of the resources. |
|