PHP Class fkooman\RemoteStorage\DocumentStorage

Afficher le fichier Open project: fkooman/php-remote-storage Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $baseDir )
deleteDocument ( Path $p ) Delete a document and all empty parent directories if there are any.
getDocument ( Path $p )
getDocumentPath ( Path $p ) Get the full absolute location of the document on the filesystem.
getFolder ( Path $p )
getFolderSize ( Path $p )
isDocument ( Path $p )
isFolder ( Path $p )
putDocument ( Path $p, $documentContent ) Store a new document.

Private Methods

Méthode Description
deleteFolder ( Path $p )
isEmptyFolder ( Path $p )

Method Details

__construct() public méthode

public __construct ( $baseDir )

deleteDocument() public méthode

Delete a document and all empty parent directories if there are any.
public deleteDocument ( Path $p )
$p Path the path of a document to delete

getDocument() public méthode

public getDocument ( Path $p )
$p Path

getDocumentPath() public méthode

Get the full absolute location of the document on the filesystem.
public getDocumentPath ( Path $p )
$p Path

getFolder() public méthode

public getFolder ( Path $p )
$p Path

getFolderSize() public méthode

public getFolderSize ( Path $p )
$p Path

isDocument() public méthode

public isDocument ( Path $p )
$p Path

isFolder() public méthode

public isFolder ( Path $p )
$p Path

putDocument() public méthode

Store a new document.
public putDocument ( Path $p, $documentContent )
$p Path