File
- Full name:
\Zotlabs\Storage\File
- Parent class:
Node
- This class implements:
\Sabre\DAV\IFile
See Also:
- http://github.com/friendica/red -
Properties
data
The file from attach table.
auth
See Also:
-
- \Sabre\DAV\Auth\Backend\BackendInterface
name
os_path
folder_hash
Methods
__construct
Sets up the node, expects a full path name.
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | |
$data |
array | from attach table |
$auth |
mixed |
getName
setName
Parameters:
Parameter | Type | Description |
---|---|---|
$newName |
string | The new name of the file. |
Throws:
put
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
resource |
get
getETag
getContentType
getSize
Return Value:
filesize in bytes
getLastModified
Return Value:
last modification time in UNIX timestamp
delete
Throws:
Automatically generated on 2025-03-19