Méthode | Description | |
---|---|---|
__construct ( string | null $path = null ) | Creates a new resource. | |
attachTo ( Puli\Repository\Api\ResourceRepository $repo, $path = null ) | ||
createReference ( $path ) | ||
detach ( ) | ||
getChild ( $relPath ) | ||
getMetadata ( ) | ||
getName ( ) | ||
getPath ( ) | ||
getRepository ( ) | ||
getRepositoryPath ( ) | ||
getVersions ( ) | ||
hasChild ( $relPath ) | ||
hasChildren ( ) | ||
isAttached ( ) | ||
isReference ( ) | ||
listChildren ( ) | ||
serialize ( ) | ||
unserialize ( $string ) |
Méthode | Description | |
---|---|---|
postUnserialize ( array $data ) | Invoked after unserializing a resource. | |
preSerialize ( array &$data ) | Invoked before serializing a resource. |
public __construct ( string | null $path = null ) | ||
$path | string | null | The path of the resource. |
public attachTo ( Puli\Repository\Api\ResourceRepository $repo, $path = null ) | ||
$repo | Puli\Repository\Api\ResourceRepository |
protected postUnserialize ( array $data ) | ||
$data | array | The unserialized data. Pop your custom data from the end of the array before calling the parent method. |
protected preSerialize ( array &$data ) | ||
$data | array | The data to serialize. Add custom data at the end of the array. |