Skip to content

File

See Also:

  • http://github.com/friendica/red -

Properties

data

The file from attach table.

public array $data

auth

private $auth

See Also:

    • \Sabre\DAV\Auth\Backend\BackendInterface

name

private string $name

os_path

public $os_path

folder_hash

public $folder_hash

Methods

__construct

Sets up the node, expects a full path name.

public __construct(string $name, array $data, mixed& $auth): mixed

Parameters:

Parameter Type Description
$name string
$data array from attach table
$auth mixed

getName

public getName(): string

setName

public setName(string $newName): void

Parameters:

Parameter Type Description
$newName string The new name of the file.

Throws:


put

public put(resource $data): void

Parameters:

Parameter Type Description
$data resource

get

public get(): string

getETag

public getETag(): null|string

getContentType

public getContentType(): mixed

getSize

public getSize(): int

Return Value:

filesize in bytes


getLastModified

public getLastModified(): int

Return Value:

last modification time in UNIX timestamp


delete

public delete(): mixed

Throws:



Automatically generated on 2025-03-19