Метод | Описание | |
---|---|---|
deleteResource ( |
Deletes the storage data related to the given PersistentResource object | |
importResource ( string | resource $source, string $collectionName ) : |
Imports a resource (file) from the given URI or PHP resource stream into this storage. | |
importResourceFromContent ( string $content, string $collectionName ) : |
Imports a resource from the given string content into this storage. | |
initializeObject ( ) : void | Initializes this resource storage |
Метод | Описание | |
---|---|---|
fixFilePermissions ( string $pathAndFilename ) : void | Fixes the permissions as needed for Flow to run fine in web and cli context. | |
importTemporaryFile ( string $temporaryPathAndFileName, string $collectionName ) : |
Imports the given temporary file into the storage and creates the new resource object. | |
moveTemporaryFileToFinalDestination ( string $temporaryFile, string $finalTargetPathAndFilename ) : void | Move a temporary file to the final destination, creating missing path segments on the way. |
public deleteResource ( |
||
$resource | The PersistentResource to delete the storage data of | |
Результат | boolean | TRUE if removal was successful |
protected fixFilePermissions ( string $pathAndFilename ) : void | ||
$pathAndFilename | string | |
Результат | void |
public importResource ( string | resource $source, string $collectionName ) : |
||
$source | string | resource | |
$collectionName | string | Name of the collection the new PersistentResource belongs to |
Результат | A resource object representing the imported resource |
public importResourceFromContent ( string $content, string $collectionName ) : |
||
$content | string | The actual content to import |
$collectionName | string | Name of the collection the new PersistentResource belongs to |
Результат | A resource object representing the imported resource |
protected importTemporaryFile ( string $temporaryPathAndFileName, string $collectionName ) : |
||
$temporaryPathAndFileName | string | |
$collectionName | string | |
Результат |
public initializeObject ( ) : void | ||
Результат | void |