PHP Класс Puli\Repository\Resource\GenericResource

С версии: 1.0
Автор: Bernhard Schussek ([email protected])
Наследование: implements Puli\Repository\Api\Resource\PuliResource
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )

Защищенные методы

Метод Описание
postUnserialize ( array $data ) Invoked after unserializing a resource.
preSerialize ( array &$data ) Invoked before serializing a resource.

Описание методов

__construct() публичный Метод

Creates a new resource.
public __construct ( string | null $path = null )
$path string | null The path of the resource.

attachTo() публичный Метод

public attachTo ( Puli\Repository\Api\ResourceRepository $repo, $path = null )
$repo Puli\Repository\Api\ResourceRepository

createReference() публичный Метод

public createReference ( $path )

detach() публичный Метод

public detach ( )

getChild() публичный Метод

public getChild ( $relPath )

getMetadata() публичный Метод

public getMetadata ( )

getName() публичный Метод

public getName ( )

getPath() публичный Метод

public getPath ( )

getRepository() публичный Метод

public getRepository ( )

getRepositoryPath() публичный Метод

public getRepositoryPath ( )

getVersions() публичный Метод

public getVersions ( )

hasChild() публичный Метод

public hasChild ( $relPath )

hasChildren() публичный Метод

public hasChildren ( )

isAttached() публичный Метод

public isAttached ( )

isReference() публичный Метод

public isReference ( )

listChildren() публичный Метод

public listChildren ( )

postUnserialize() защищенный Метод

Override this method if you want to unserialize custom data in subclasses.
protected postUnserialize ( array $data )
$data array The unserialized data. Pop your custom data from the end of the array before calling the parent method.

preSerialize() защищенный Метод

Override this method if you want to serialize custom data in subclasses.
protected preSerialize ( array &$data )
$data array The data to serialize. Add custom data at the end of the array.

serialize() публичный Метод

public serialize ( )

unserialize() публичный Метод

public unserialize ( $string )