Exemple #1
0
 /**
  * load iCal instance for filename
  *
  * @static
  * @access public
  * @since 1.5
  */
 public static function &iCalInstance($filename, $rawtext = "")
 {
     static $instances = array();
     if (is_array($filename)) {
         echo "problem";
     }
     $index = md5($filename . $rawtext);
     if (array_key_exists($index, $instances)) {
         return $instances[$index];
     } else {
         $import = new iCalImport();
         $instances[$index] = $import->import($filename, $rawtext);
         return $instances[$index];
     }
 }