function __construct($name, $description = "")
 {
     parent::__construct();
     //Ajout de quelques proporiétés
     $this->setProperty("method", "PUBLISH");
     $this->setProperty("x-wr-calname", $name);
     if ($description) {
         $this->setProperty("X-WR-CALDESC", $description);
     }
     $this->setProperty("X-WR-TIMEZONE", CAppUI::conf("timezone"));
 }
Esempio n. 2
0
 function __construct($name)
 {
     parent::__construct();
     $this->name = $name;
     $filename = $this->name . '.ics';
     $this->setConfig('directory', CALENDAR_DIR);
     // identify directory
     $this->setConfig('filename', $filename);
     // identify file name
     $this->parse();
 }