Method | Description | |
---|---|---|
createDateFolderStructure ( ) : boolean | Does this storage create a date folder structure? | |
deleteKey ( string $key ) : boolean | Deletes the file | |
getContents ( string $key ) : string | boolean | Reads the contents of the file | |
getKeys ( string $key = '', boolean | integer $recursive = false ) : array | Returns an array of all keys (files and directories) | |
getRecentKey ( ) : string | null | Returns most recent file key that was used by a storage | |
getTimeModified ( string $key ) : integer | boolean | Returns the last modified time | |
getURL ( $key ) : mixed | Returns public file URL | |
keyExists ( string $key ) : boolean | Checks whether the file exists | |
renameKey ( string $sourceKey, string $targetKey ) : boolean | Renames a file | |
setContents ( $key, $contents, boolean $append = false ) : boolean | integer | Writes the given File |
public createDateFolderStructure ( ) : boolean | ||
return | boolean |
public getKeys ( string $key = '', boolean | integer $recursive = false ) : array | ||
$key | string | (Optional) Key of a directory to get keys from. If not set - keys will be read from the storage root. |
$recursive | boolean | integer | (Optional) Read all items recursively. Pass integer value to specify recursion depth. |
return | array |
public getRecentKey ( ) : string | null | ||
return | string | null |