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;
41 $this->
user = $a_user;
46 $this->pass = $a_pass;
94 $this->ical = $this->
call();
95 $GLOBALS[
'ilLog']->write(__METHOD__ .
': ' . $this->ical);
106 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
108 include_once(
'./Services/Calendar/classes/class.ilCalendarEntry.php');
114 include_once
'./Services/Calendar/classes/iCal/class.ilICalParser.php';
132 $this->curl->setOpt(CURLOPT_HTTPPROXYTUNNEL,
true);
137 $this->curl->setOpt(CURLOPT_SSL_VERIFYPEER, 0);
138 $this->curl->setOpt(CURLOPT_SSL_VERIFYHOST, 0);
139 $this->curl->setOpt(CURLOPT_RETURNTRANSFER, 1);
141 $this->curl->setOpt(CURLOPT_FOLLOWLOCATION, 1);
142 $this->curl->setOpt(CURLOPT_MAXREDIRS, 3);
145 $this->curl->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
146 $this->curl->setOpt(CURLOPT_USERPWD, $this->
user .
':' . $this->pass);
155 if (substr($this->
getUrl(), 0, 6) ==
'webcal') {
156 $purged = preg_replace(
'/webcal/',
'http', $this->
getUrl(), 1);
157 $this->url = $purged;
158 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Using new url: ' . $this->
getUrl());
171 $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
foreach($_POST as $key=> $value) $res
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
static _getInstance()
Getter for unique instance.