/** * Pseudo Constructor * * @param iCal Event parsed from ICS file as an array $ice * @return n/a */ function iCalEventFromDB($icalrowAsArray) { $db =& JFactory::getDBO(); $temp = new iCalEvent($db); foreach ($icalrowAsArray as $key => $val) { $temp->{$key} = $val; } if ($temp->freq != "") { $temp->rrule = iCalRRule::iCalRRuleFromDB($icalrowAsArray); } $temp->setupEventDetailFromDB($icalrowAsArray); return $temp; }