Webdav: ezcWebdavFlaggedPropertyStorage
[ ]
[ Plugin architecture ]
[ ]
[ ]
[ ]
[ ]
Class: ezcWebdavFlaggedPropertyStorage
|
Class to manage instances of ezcWebdavProperty with associated flags. [
source]
The stored objects are associated with some user defined flags. Other then that the class does what
ezcWebdavPropertyStorage does.
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:'] )
Get 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. 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.
You may optionally add some flag of mixed type to the property, which just be stored and may be requested later.
Parameters
Redefinition of
detach
void detach(
string
$name, [string
$namespace = 'DAV:'] )
Detaches a property from the storage.
Removes the property with the given $name from the storage. If the property did not exist in the storage, the call is silently ignored. If no $namespace is given, the default namespace DAV: is used.
Parameters
| Name |
Type |
Description |
$name |
string |
|
$namespace |
string |
|
Redefinition of
getFlag
mixed getFlag(
string
$name, [string
$namespace = 'DAV:'] )
Get flags for property.
Get the flags of a proerpty from the flagged property storage by its name and optionally the naemspace of the property. If the namespace is not explicitely given it dafults to the default DAV namespace "DAV:".
Will return null, if no flag has been assigned, or the property does not exist.
Parameters
| Name |
Type |
Description |
$name |
string |
|
$namespace |
string |
|
Last updated: Wed, 28 Nov 2007