PHP 클래스 Horde_Dav_File, horde

저자: Jan Schneider ([email protected])
상속: extends Sabre\DAV\File, implements Sabre\DAV\IProperties
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_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