There are several magic methods that may be useful for many of the classes
in qCal. For instance, a qCal object might need to be serialized for some
reason and so __sleep() and __wakeup() might be useful.
The qCal_Component classes already makes use of the __call() method to be
capable of doing something such as $cal->getDtstart() and
$cal->setDtstart(). Maybe it could also make use of other magic methods.
The qCal_Property classes could probably make use of __call() or possibly
just __set() and __get() to get and set parameters ($attach->fmttype =
'application/postscript')
The qCal_Date, qCal_Time and qCal_DateTime classes, along with
qCal_DateTime_Duration, qCal_DateTime_Period, etc. might be able to make
use of some of these methods as well. For instance a qCal_Date class could
maybe make use of __get() and __set() for its month, date, year, hour, etc.
Original issue reported on code.google.com by Luke.Vis...@gmail.com on 7 Feb 2010 at 5:58
Original issue reported on code.google.com by
Luke.Vis...@gmail.com
on 7 Feb 2010 at 5:58