5 include_once
'./Services/WebServices/Curl/classes/class.ilCurlConnection.php';
6 include_once
'./Services/WebServices/Curl/classes/class.ilCurlConnectionException.php';
19 private $type = self::TYPE_ICAL;
43 $this->logger = $DIC->logger();
49 $this->
user = $a_user;
54 $this->pass = $a_pass;
102 $this->ical = $this->
call();
103 $this->logger->debug($this->ical);
114 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
116 include_once(
'./Services/Calendar/classes/class.ilCalendarEntry.php');
122 include_once
'./Services/Calendar/classes/iCal/class.ilICalParser.php';
140 $this->curl->setOpt(CURLOPT_HTTPPROXYTUNNEL,
true);
145 $this->curl->setOpt(CURLOPT_SSL_VERIFYPEER, 0);
146 $this->curl->setOpt(CURLOPT_SSL_VERIFYHOST, 0);
147 $this->curl->setOpt(CURLOPT_RETURNTRANSFER, 1);
149 $this->curl->setOpt(CURLOPT_FOLLOWLOCATION, 1);
150 $this->curl->setOpt(CURLOPT_MAXREDIRS, 3);
153 $this->curl->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
154 $this->curl->setOpt(CURLOPT_USERPWD, $this->
user .
':' . $this->pass);
163 if (substr($this->
getUrl(), 0, 6) ==
'webcal') {
164 $purged = preg_replace(
'/webcal/',
'http', $this->
getUrl(), 1);
165 $this->url = $purged;
178 $res = $this->curl->exec();
initCurl()
Init curl connection.
Stores calendar categories.
Reader for remote ical calendars.
static _delete($a_entry_id)
delete entry
foreach($_POST as $key=> $value) $res
importIcal(ilCalendarCategory $cat)
Import ical in calendar.
__construct($a_url)
Constructor init curl.
static _deleteByCategoryId($a_cat_id)
Delete assignments by category id.
static _getAssignedAppointments($a_cat_id)
Get assigned apointments.
getCategoryID()
get category id
static _getInstance()
Getter for unique instance.