PHP Класс Horde_Dav_File, horde

Автор: Jan Schneider ([email protected])
Наследование: extends Sabre\DAV\File, implements Sabre\DAV\IProperties
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_item array File details.
$_path string The path to the current file.
$_propertyMap array Mapping of WebDAV property names to Horde API's browse() properties.
$_registry Horde_Registry A registry object.
$_size integer This will only be set if the actual file data is requested, to avoid the overhead of building the file content only to retrieve the file size.

Открытые методы

Метод Описание
__construct ( Horde_Registry $registry, string $path = null, array $item = [] ) Constructor.
delete ( ) Deletes the current node.
get ( ) : mixed Returns the data
getContentType ( ) : string | null Returns the mime-type for a file
getETag ( ) : string | null Returns the ETag for a file.
getLastModified ( ) : integer Returns the last modification time, as a unix timestamp
getName ( ) : string Returns the name of the node.
getProperties ( array $properties ) : void Returns a list of properties for this nodes.
getSize ( ) : integer Returns the size of the file, in bytes.
propPatch ( Sabre\DAV\PropPatch $propPatch ) : void Updates properties on this node.
put ( resource $data ) : void Updates the data

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Horde_Registry $registry, string $path = null, array $item = [] )
$registry Horde_Registry A registry object.
$path string The path to this file.
$item array File details.

delete() публичный Метод

Deletes the current node.
public delete ( )

get() публичный Метод

This method may either return a string or a readable stream resource
public get ( ) : mixed
Результат mixed

getContentType() публичный Метод

If null is returned, we'll assume application/octet-stream
public getContentType ( ) : string | null
Результат string | null

getETag() публичный Метод

Returns the ETag for a file.
public getETag ( ) : string | null
Результат string | null

getLastModified() публичный Метод

Returns the last modification time, as a unix timestamp
public getLastModified ( ) : integer
Результат integer

getName() публичный Метод

This is used to generate the url.
public getName ( ) : string
Результат string

getProperties() публичный Метод

Returns a list of properties for this nodes.
public getProperties ( array $properties ) : void
$properties array
Результат void

getSize() публичный Метод

Returns the size of the file, in bytes.
public getSize ( ) : integer
Результат integer

propPatch() публичный Метод

Updates properties on this node.
public propPatch ( Sabre\DAV\PropPatch $propPatch ) : void
$propPatch Sabre\DAV\PropPatch
Результат void

put() публичный Метод

data is a readable stream resource.
public put ( resource $data ) : void
$data resource
Результат void

Описание свойств

$_item защищенное свойство

File details.
protected array $_item
Результат array

$_path защищенное свойство

The path to the current file.
protected string $_path
Результат string

$_propertyMap защищенное статическое свойство

Mapping of WebDAV property names to Horde API's browse() properties.
protected static array $_propertyMap
Результат array

$_registry защищенное свойство

A registry object.
protected Horde_Registry $_registry
Результат Horde_Registry

$_size защищенное свойство

This will only be set if the actual file data is requested, to avoid the overhead of building the file content only to retrieve the file size.
protected int $_size
Результат integer