PHP 클래스 Puli\Repository\Resource\GenericResource

부터: 1.0
저자: Bernhard Schussek ([email protected])
상속: implements Puli\Repository\Api\Resource\PuliResource
파일 보기 프로젝트 열기: puli/repository 1 사용 예제들

공개 메소드들

메소드 설명
__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 )