5 include_once
'./Services/WebServices/Curl/classes/class.ilCurlConnection.php';
6 include_once
'./Services/WebServices/Curl/classes/class.ilCurlConnectionException.php';
20 private $type = self::TYPE_ICAL;
42 $this->
user = $a_user;
47 $this->pass = $a_pass;
97 $this->ical = $this->
call();
98 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.$this->ical);
109 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
112 include_once(
'./Services/Calendar/classes/class.ilCalendarEntry.php');
118 include_once
'./Services/Calendar/classes/iCal/class.ilICalParser.php';
135 $this->curl->setOpt(CURLOPT_SSL_VERIFYPEER, 0);
136 $this->curl->setOpt(CURLOPT_SSL_VERIFYHOST, 0);
137 $this->curl->setOpt(CURLOPT_RETURNTRANSFER, 1);
139 $this->curl->setOpt(CURLOPT_FOLLOWLOCATION, 1);
140 $this->curl->setOpt(CURLOPT_MAXREDIRS, 3);
144 $this->curl->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
145 $this->curl->setOpt(CURLOPT_USERPWD,$this->
user.
':'.$this->pass);
156 if(substr($this->
getUrl(), 0, 6) ==
'webcal')
158 $purged = preg_replace(
'/webcal/',
'http', $this->
getUrl(), 1);
159 $this->url = $purged;
160 $GLOBALS[
'ilLog']->write(__METHOD__.
': Using new url: '. $this->getUrl());
174 $res = $this->curl->exec();
initCurl()
Init curl connection.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
Stores calendar categories.
Reader for remote ical calendars.
static _delete($a_entry_id)
delete entry
importIcal(ilCalendarCategory $cat)
Import ical in calendar.
__construct($a_url)
Constructor init curl.
Create styles array
The data for the language used.
static _deleteByCategoryId($a_cat_id)
Delete assignments by category id.
static _getAssignedAppointments($a_cat_id)
Get assigned apointments.
getCategoryID()
get category id