Path

ez components / documentation / api reference / 2008.2.1 / webdav


eZ Components 2008.2.1

Webdav: ezcWebdavProperty

[ Tutorial ] [ Clients ] [ Plugin architecture ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcWebdavProperty

Base class for WebDAV property representation classes. [source]

Parents

ezcWebdavInfrastructureBase
   |
   --ezcWebdavProperty

Descendents

Child Class Description
ezcWebdavLiveProperty Abstract base class for live property objects.
ezcWebdavDeadProperty An object of this class represents a WebDAV dead property.

Properties

array read  $errors
Validation errors for property
bool read  $hasError
If the property has a property validation error.
string read/write  $name
Name of property
string read/write  $namespace
Namespace of property

Member Variables

protected array(string=>mixed) $properties
Properties.

Inherited Member Variables

From ezcWebdavInfrastructureBase:
protected  ezcWebdavInfrastructureBase::$pluginData

Method Summary

public void __construct( $namespace, $name )
Creates a new property object.
public void clear( )
Remove all contents from a property.
protected void hasError( $property, $value, $expected )
Indicates that a property has a validation error.
public abstract bool hasNoContent( )
Check if property has no content.
public void __clone( )
Clones a property deeply.

Inherited Methods

From ezcWebdavInfrastructureBase :
public mixed ezcWebdavInfrastructureBase::getPluginData()
Retrieves plugin data from the storage.
public bool ezcWebdavInfrastructureBase::hasPluginData()
Returns if plugin data is available in the storage.
public void ezcWebdavInfrastructureBase::removePluginData()
Removes plugin data from the storage.
public void ezcWebdavInfrastructureBase::setPluginData()
Sets plugin data in the storage.

Methods

__construct

void __construct( string $namespace, string $name )
Creates a new property object.
Creates a new property by namespace and name.

Parameters

Name Type Description
$namespace string  
$name string  

Redefined in descendants as

Method Description
ezcWebdavLiveProperty::__construct() Creates a new live property.
ezcWebdavGetLastModifiedProperty::__construct() Creates a new ezcWebdavGetLastModifiedProperty.
ezcWebdavSourceProperty::__construct() Creates a new ezcWebdavSourceProperty.
ezcWebdavSourcePropertyLink::__construct() Creates a new ezcWebdavSourceProperty.
ezcWebdavGetContentLanguageProperty::__construct() Creates a new ezcWebdavGetContentLanguageProperty.
ezcWebdavGetEtagProperty::__construct() Creates a new ezcWebdavGetEtagProperty.
ezcWebdavGetContentLengthProperty::__construct() Creates a new ezcWebdavGetContentLengthProperty.
ezcWebdavDisplayNameProperty::__construct() Creates a new ezcWebdavDisplayNameProperty.
ezcWebdavCreationDateProperty::__construct() Creates a new ezcWebdavCreationDateProperty.
ezcWebdavGetContentTypeProperty::__construct() Creates a new ezcWebdavGetContentTypeProperty.
ezcWebdavResourceTypeProperty::__construct() Creates a new ezcWebdavResourceTypeProperty.
ezcWebdavDeadProperty::__construct() Creates a new dead property.

clear

void clear( )
Remove all contents from a property.
Clear a property, so that it will be recognized as empty later.

Redefined in descendants as

Method Description
ezcWebdavSourceProperty::clear() Removes all contents from a property.
ezcWebdavGetContentLanguageProperty::clear() Removes all contents from a property.

hasError

void hasError( string $property, mixed $value, string $expected )
Indicates that a property has a validation error.
Method called, when a property validation error occurs. The error is stored and the property is set as errnous.

Parameters

Name Type Description
$property string  
$value mixed  
$expected string  

hasNoContent

bool hasNoContent( )
Check if property has no content.
The implementation of this method must return true, if no content is stored in the property.

Redefined in descendants as

Method Description
ezcWebdavGetLastModifiedProperty::hasNoContent() Returns if property has no content.
ezcWebdavSourceProperty::hasNoContent() Remove all contents from a property.
ezcWebdavSourcePropertyLink::hasNoContent() Returns if property has no content.
ezcWebdavGetContentLanguageProperty::hasNoContent() Returns if property has no content.
ezcWebdavGetEtagProperty::hasNoContent() Returns if property has no content.
ezcWebdavGetContentLengthProperty::hasNoContent() Returns if property has no content.
ezcWebdavDisplayNameProperty::hasNoContent() Returns if property has no content.
ezcWebdavCreationDateProperty::hasNoContent() Returns if property has no content.
ezcWebdavGetContentTypeProperty::hasNoContent() Returns if property has no content.
ezcWebdavResourceTypeProperty::hasNoContent() Returns if property has no content.
ezcWebdavDeadProperty::hasNoContent() Returns if property has no content.

__clone

void __clone( )
Clones a property deeply.

Last updated: Mon, 09 Feb 2009