메소드 |
설명 |
|
__construct ( Webiny\Component\Storage\Driver\DriverInterface $driver ) |
|
|
deleteKey ( string $key ) : boolean |
Deletes the file |
|
getAbsolutePath ( $key = '' ) : mixed |
Get absolute file path
Requires '\Webiny\Component\Storage\Driver\AbsolutePathInterface' to be implemented by a Driver class |
|
getContents ( $key ) : string | boolean |
Reads the contents of the file |
|
getDriver ( ) : Webiny\Component\Storage\Driver\DriverInterface |
|
|
getKeys ( string $key = '', boolean | integer $recursive = false ) : array |
Returns an array of all keys (files and directories) |
|
getRecentKey ( ) |
|
|
getSize ( string $key ) : integer | boolean |
Get file size
Requires '\Webiny\Component\Storage\Driver\SizeAwareInterface' to be implemented by a Driver class |
|
getTimeModified ( string $key, boolean $asDateTimeObject = false ) : UNIX |
Returns the last modified time |
|
getURL ( $key ) |
|
|
isDirectory ( string $key ) : boolean |
Check if key is a directory
Requires '\Webiny\Component\Storage\Driver\DirectoryAwareInterface' to be implemented by a Driver class |
|
keyExists ( string $key ) : boolean |
Indicates whether the key exists |
|
renameKey ( string $sourceKey, string $targetKey ) : boolean |
Renames a file |
|
setContents ( string $key, string $contents, boolean $append = false ) : boolean | integer |
Writes the given contents into the file |
|
supportsAbsolutePaths ( ) : mixed |
Can this storage handle absolute paths? |
|
supportsDirectories ( ) : mixed |
Can this storage handle directories? |
|
supportsSize ( ) : mixed |
Can this storage get file size info? |
|
supportsTouching ( ) : mixed |
Can this storage touch a file? |
|
touchKey ( string $key ) : mixed |
Touch a file (change time modified)
Requires '\Webiny\Component\Storage\Driver\TouchableInterface' to be implemented by a Driver class |
|