PHP 클래스 JamesMoss\Flywheel\NestedRepository

상속: extends Repository
파일 보기 프로젝트 열기: jamesmoss/flywheel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $name, Config $config )
delete ( $id )
getAllFiles ( ) : array Get an array containing the path of all files in this repository
getFilename ( string $id ) : string Gets just the filename for a document based on it's ID.
getPathForDocument ( string $id ) : string Get the filesystem path for a document based on it's ID.

보호된 메소드들

메소드 설명
getFilesRecursive ( $dir, array &$result, $ext )
getIdFromPath ( $path, $ext )
isNestedId ( $id )
validateId ( string $id ) : boolean Checks to see if a document ID is valid
write ( $path, $contents )

메소드 상세

__construct() 공개 메소드

public __construct ( $name, Config $config )
$config Config

delete() 공개 메소드

public delete ( $id )

getAllFiles() 공개 메소드

Get an array containing the path of all files in this repository
public getAllFiles ( ) : array
리턴 array An array, item is a file path.

getFilename() 공개 메소드

Gets just the filename for a document based on it's ID.
public getFilename ( string $id ) : string
$id string The ID of the document.
리턴 string The filename of the document, including extension.

getFilesRecursive() 보호된 메소드

protected getFilesRecursive ( $dir, array &$result, $ext )
$result array

getIdFromPath() 보호된 메소드

protected getIdFromPath ( $path, $ext )

getPathForDocument() 공개 메소드

Get the filesystem path for a document based on it's ID.
public getPathForDocument ( string $id ) : string
$id string The ID of the document.
리턴 string The full filesystem path of the document.

isNestedId() 보호된 메소드

protected isNestedId ( $id )

validateId() 보호된 메소드

Checks to see if a document ID is valid
protected validateId ( string $id ) : boolean
$id string The ID to check
리턴 boolean True if valid, otherwise false

write() 보호된 메소드

protected write ( $path, $contents )