PHP Class Webiny\Component\Storage\Driver\Local\LocalStorageDriver

Inheritance: implements Webiny\Component\Storage\Driver\DirectoryAwareInterface, implements Webiny\Component\Storage\Driver\DriverInterface, implements Webiny\Component\Storage\Driver\SizeAwareInterface, implements Webiny\Component\Storage\Driver\AbsolutePathInterface, implements Webiny\Component\Storage\Driver\TouchableInterface
Exibir arquivo Open project: Webiny/Framework

Protected Properties

Property Type Description
$create
$dateFolderStructure
$directory
$publicUrl
$recentKey

Public Methods

Method Description
__construct ( array | ArrayObject $config ) Constructor
createDateFolderStructure ( )
deleteKey ( $key )
getAbsolutePath ( $key )
getContents ( $key )
getKeys ( string $key = '', boolean | integer $recursive = false ) : array Returns an array of all keys (files and directories)
getRecentKey ( )
getSize ( $key )
getTimeModified ( $key )
getURL ( $key )
isDirectory ( $key )
keyExists ( $key )
renameKey ( $sourceKey, $targetKey )
setContents ( $key, $contents, $append = false )
touchKey ( $key )

Private Methods

Method Description
buildPath ( $key )

Method Details

__construct() public method

Constructor
public __construct ( array | ArrayObject $config )
$config array | Webiny\Component\StdLib\StdObject\ArrayObject\ArrayObject

createDateFolderStructure() public method

deleteKey() public method

public deleteKey ( $key )

getAbsolutePath() public method

public getAbsolutePath ( $key )

getContents() public method

public getContents ( $key )

getKeys() public method

Returns an array of all keys (files and directories)
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

getRecentKey() public method

public getRecentKey ( )

getSize() public method

public getSize ( $key )

getTimeModified() public method

public getTimeModified ( $key )

getURL() public method

public getURL ( $key )

isDirectory() public method

public isDirectory ( $key )

keyExists() public method

public keyExists ( $key )

renameKey() public method

public renameKey ( $sourceKey, $targetKey )

setContents() public method

public setContents ( $key, $contents, $append = false )

touchKey() public method

public touchKey ( $key )

Property Details

$create protected_oe property

protected $create

$dateFolderStructure protected_oe property

protected $dateFolderStructure

$directory protected_oe property

protected $directory

$publicUrl protected_oe property

protected $publicUrl

$recentKey protected_oe property

protected $recentKey