Interface: Sabre_DAV_IFile

Source Location: /includes/classes/SabreDAV/lib/Sabre/DAV/IFile.php

Interface Overview [line 14]

Sabre_DAV_INode
   |
   --Sabre_DAV_IFile

This interface represents a file or leaf in the tree.

Author(s):

  • Evert Pot (http://www.rooftopsolutions.nl/)

Version:

Copyright:

  • Copyright (C) 2007-2010 Rooftop Solutions. All rights reserved.

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods

Class: Sabre_DAV_INode

Sabre_DAV_INode::delete()
Deleted the current node
Sabre_DAV_INode::getLastModified()
Returns the last modification time, as a unix timestamp
Sabre_DAV_INode::getName()
Returns the name of the node
Sabre_DAV_INode::setName()
Renames the node


Class Details

This interface represents a file or leaf in the tree.

The nature of a file is, as you might be aware of, that it doesn't contain sub-nodes and has contents

Tags:

[ Top ]


Class Variables


Class Methods

get

mixed get( )

[line 33]

Returns the data

This method may either return a string or a readable stream resource

Parameters:

[ Top ]

getContentType

void getContentType( )

[line 42]

Returns the mime-type for a file

If null is returned, we'll assume application/octet-stream

Parameters:

[ Top ]

getETag

void getETag( )

[line 53]

Returns the ETag for a file

An ETag is a unique identifier representing the current version of the file. If the file changes, the ETag MUST change.

Return null if the ETag can not effectively be determined

Parameters:

[ Top ]

getSize

int getSize( )

[line 60]

Returns the size of the node, in bytes

Parameters:

[ Top ]

put

void put( resource $data)

[line 24]

Updates the data

The data argument is a readable stream resource.

Parameters:

  • resource $data -

[ Top ]


Class Constants


Documentation generated on Mon, 31 May 2010 12:53:30 -0400 by phpDocumentor 1.4.3