Webdav: ezcWebdavFlaggedPropertyStorage
[ ]
[ Plugin architecture ]
[ ]
[ ]
[ ]
[ ]
Class: ezcWebdavFlaggedPropertyStorage
|
Container class for ezcWebdavProperty objects with associated flags. [
source]
An instance of this class is used to manage WebDAV properties, namely instances of
ezcWebdavProperty. Properties are structured by their name and the namespace they reside in.
Parents
ezcWebdavBasicPropertyStorage
|
--ezcWebdavFlaggedPropertyStorage
Member Variables
|
protected array |
$flags
= array()
Next ID for a element in the ordered property list, to generate valid IDs even when some contents has been removed. |
Inherited Member Variables
From
ezcWebdavBasicPropertyStorage:
Method Summary
|
public void |
attach(
$property, [$flag = 0] )
Attaches a property to the storage. |
|
public void |
detach(
$name, [$namespace = 'DAV:'] )
Detaches a property from the storage. |
|
public mixed |
getFlag(
$name, [$namespace = 'DAV:'] )
Returns the flags for property. |
Inherited Methods
From
ezcWebdavBasicPropertyStorage :
Methods
attach
Attaches a property to the storage.
Adds the given $property to the storage. The property can later be accessed by its name in combination with the namespace through the
get() method. Live properties (and only these) reside in the namespace DAV:, which is the default for all accessor methods.
If a property with the same namespace and name is already contained in the storage, it will be overwritten.
The $flags can be used to attach additional information to the property. This is used by
ezcWebdavTransport when parsing a ezcWebavPropPatchRequest, to indicate what should happen with the affected property in the
ezcWebdavBackend. Flags used there are:
Parameters
Redefinition of
detach
void detach(
string
$name, [string
$namespace = 'DAV:'] )
Detaches a property from the storage.
Removes the property with the given $name and $namespace from the storage. If the property does not exist in the storage, the call is silently ignored. If no $namespace is given, the default namespace for live properties ('DAV:') is used.
Parameters
| Name |
Type |
Description |
$name |
string |
|
$namespace |
string |
|
Redefinition of
getFlag
mixed getFlag(
string
$name, [string
$namespace = 'DAV:'] )
Returns the flags for property.
Returns the flags of a proerpty from the flagged property storage by the $name and optionally the $naemspace of the property. If no $namespace is given, the default namespace for live properties ('DAV:') is used.
The method returns 0, if no flag has been explicitly assigned, and null, if the property does not exist in the storage.
Parameters
| Name |
Type |
Description |
$name |
string |
|
$namespace |
string |
|
Last updated: Mon, 17 Dec 2007