메소드 | 설명 | |
---|---|---|
__construct ( string $key, |
Constructor | |
delete ( ) : boolean |
Delete a file |
|
getAbsolutePath ( ) : string | Get absolute file path. | |
getContents ( ) : string | boolean | Get file contents | |
getKey ( ) : string | Get file key | |
getSize ( ) : integer | null | Get file size in bytes | |
getStorage ( ) : |
Get file storage | |
getTimeModified ( boolean $asDateTimeObject = false ) : integer | DateTimeObject | Get time modified | |
getUrl ( ) : string | Get file public URL | |
rename ( string $newKey ) : boolean |
Rename a file |
|
setContents ( mixed $contents, boolean $append = false ) |
Set file contents (writes contents to storage) |
|
touch ( ) | Touch a file (change time modified) |
public __construct ( string $key, |
||
$key | string | File key |
$storage | Storage to use |
public getAbsolutePath ( ) : string | ||
리턴 | string |
public getContents ( ) : string | boolean | ||
리턴 | string | boolean | String on success, false if could not read content |
public getStorage ( ) : |
||
리턴 |
public getTimeModified ( boolean $asDateTimeObject = false ) : integer | DateTimeObject | ||
$asDateTimeObject | boolean | |
리턴 | integer | DateTimeObject | UNIX timestamp or DateTimeObject |
public setContents ( mixed $contents, boolean $append = false ) | ||
$contents | mixed | |
$append | boolean |