Exemplo n.º 1
0
 /**
  * Pseudo Constructor
  *
  * @param iCal Event parsed from ICS file as an array $ice
  * @return n/a
  */
 function iCalEventFromData($ice)
 {
     $db =& JFactory::getDBO();
     $temp = new iCalEvent($db);
     $temp->data = $ice;
     if (array_key_exists("RRULE", $temp->data)) {
         $temp->rrule = iCalRRule::iCalRRuleFromData($temp->data['RRULE']);
     }
     $temp->convertData();
     $temp->setupEventDetail();
     //		$temp->map_iCal_to_Jevents();
     return $temp;
     //print_r($this->data);
 }