ISimpleFile
Interface ISimpleFile
Tags
Table of Contents
- delete() : mixed
- Delete the file
- getContent() : string
- Get the content
- getETag() : string
- Get the ETag
- getMimeType() : string
- Get the MimeType
- getMTime() : int
- Get the last modification time
- getName() : string
- Get the name
- getSize() : int
- Get the size in bytes
- putContent() : mixed
- Overwrite the file
- read() : resource
- Open the file as stream for reading, resulting resource can be operated as stream like the result from php's own fopen
- write() : resource
- Open the file as stream for writing, resulting resource can be operated as stream like the result from php's own fopen
Methods
delete()
Delete the file
public
delete() : mixed
Tags
Return values
mixed —getContent()
Get the content
public
getContent() : string
Tags
Return values
string —getETag()
Get the ETag
public
getETag() : string
Tags
Return values
string —getMimeType()
Get the MimeType
public
getMimeType() : string
Tags
Return values
string —getMTime()
Get the last modification time
public
getMTime() : int
Tags
Return values
int —getName()
Get the name
public
getName() : string
Tags
Return values
string —getSize()
Get the size in bytes
public
getSize() : int
Tags
Return values
int —putContent()
Overwrite the file
public
putContent(string|resource $data) : mixed
Parameters
- $data : string|resource
Tags
Return values
mixed —read()
Open the file as stream for reading, resulting resource can be operated as stream like the result from php's own fopen
public
read() : resource
Tags
Return values
resource —write()
Open the file as stream for writing, resulting resource can be operated as stream like the result from php's own fopen
public
write() : resource