Path

ez components / documentation / api reference / 2007.2.1 / webdav


eZ Components 2007.2.1

Webdav: ezcWebdavDateTime

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

Class: ezcWebdavDateTime

DateTime class with serialization support. [source]
The PHP 5.2 DateTime class does not support serialization/deserialization with maintaining the stored time information. This class extends DateTime to solve the issue, which is needed especially when working with persistent ezcWebdavMemoryBackend instances.

Parents

DateTime
   |
   --ezcWebdavDateTime

Method Summary

public array(int=>string) __sleep( )
Backup the currently stored time.
public void __wakeup( )
Restores the backeuped time.

Methods

__sleep

array(int=>string) __sleep( )
Backup the currently stored time.
This method is called right before serialization of the object. It backs up the current time information as an RCF 2822 formatted string and returns the name of the property this value is stored inside as an array to indicate that this property should be serialized.

__wakeup

void __wakeup( )
Restores the backeuped time.
This method is automatically called after deserializing the object and restores the backed up time information.

Last updated: Thu, 31 Jan 2008