PHP Class fkooman\RemoteStorage\DocumentStorage

Datei anzeigen Open project: fkooman/php-remote-storage Class Usage Examples

Public Methods

Method 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

Method Description
deleteFolder ( Path $p )
isEmptyFolder ( Path $p )

Method Details

__construct() public method

public __construct ( $baseDir )

deleteDocument() public method

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 method

public getDocument ( Path $p )
$p Path

getDocumentPath() public method

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

getFolder() public method

public getFolder ( Path $p )
$p Path

getFolderSize() public method

public getFolderSize ( Path $p )
$p Path

isDocument() public method

public isDocument ( Path $p )
$p Path

isFolder() public method

public isFolder ( Path $p )
$p Path

putDocument() public method

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