Class net_nemein_repeathandler

Description

Calendar repeating event handler

  • license: GNU Lesser General Public License
  • copyright: Nemein Oy, http://www.nemein.com
  • version: $Id: handler.php,v 1.1.2.2 2005/11/07 18:51:44 bergius Exp $
  • author: Henri Bergius, http://bergie.iki.fi

Located in /net/nemein/repeathandler/handler.php (line 11)

midcom_baseclasses_components_purecode
   |
   --net_nemein_repeathandler
Variable Summary
 string $_classname
Method Summary
 net_nemein_repeathandler net_nemein_repeathandler (mixed &$master_event)
 void convert_legacy_event (mixed $event_id, object $event)
 string create_event_from_instance (Array $instance, [mixed $previous_guid = ''])
 void delete_stored_repeats (mixed $guid)
 void prepare_deletion ([mixed $event_id = null])
 boolean _copy_event_properties (object &$target)
 void _get_object ([mixed $guid = null])
Variables
Methods
Constructor net_nemein_repeathandler (line 24)
net_nemein_repeathandler net_nemein_repeathandler (mixed &$master_event)
convert_legacy_event (line 261)

Convert a legacy NemeinCalendar 1.x event object to the new format

Old NemeinCalendar serialized lots of attributes as an associative array to the extra field The keys included: location, repeat_rule, repeat_prev, repeat_next, vCal_GUID, vCal_variables, task_resources, tentative, sendNotify, vCal_parameters, vCal_external_attendees, cached_guid

We currently use only the repeat_next and repeat_prev of these

void convert_legacy_event (mixed $event_id, object $event)
  • object $event: NemeinCalendar_event object
create_event_from_instance (line 92)

Create new event object from an instance array

  • return: GUID of the created instance
string create_event_from_instance (Array $instance, [mixed $previous_guid = ''])
  • Array $instance: Repeating instance returned by calculation
delete_stored_repeats (line 55)

Delete all old repeating instances of the event

void delete_stored_repeats (mixed $guid)
prepare_deletion (line 211)

Prepare an event for deletion

void prepare_deletion ([mixed $event_id = null])
_copy_event_properties (line 149)

Copy properties of the master event to a repeating instance

boolean _copy_event_properties (object &$target)
  • object $target: Object to copy properties to
_get_object (line 36)

Wrapper for MidCOM DBA or Classic API

Override in implementation as needed

void _get_object ([mixed $guid = null])

Inherited Methods

Inherited From midcom_baseclasses_components_purecode

 midcom_baseclasses_components_purecode::midcom_baseclasses_components_purecode()

Documentation generated on Mon, 21 Nov 2005 18:15:58 +0100 by phpDocumentor 1.3.0RC3