19 declare(strict_types=1);
31 private int $type = self::TYPE_ICAL;
46 $this->
logger = $DIC->logger()->cal();
50 public function setUser(
string $a_user): void
52 $this->
user = $a_user;
55 public function setPass(
string $a_pass): void
57 $this->pass = $a_pass;
70 public function read(): void
92 $this->ical = $this->
call();
93 $this->
logger->debug($this->ical);
121 $this->curl->setOpt(CURLOPT_SSL_VERIFYPEER, 0);
122 $this->curl->setOpt(CURLOPT_SSL_VERIFYHOST, 0);
123 $this->curl->setOpt(CURLOPT_RETURNTRANSFER, 1);
125 $this->curl->setOpt(CURLOPT_FOLLOWLOCATION, 1);
126 $this->curl->setOpt(CURLOPT_MAXREDIRS, 3);
129 $this->curl->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
130 $this->curl->setOpt(CURLOPT_USERPWD, $this->
user .
':' . $this->pass);
139 if (substr($this->
getUrl(), 0, 6) ==
'webcal') {
140 $purged = preg_replace(
'/webcal/',
'http', $this->
getUrl(), 1);
141 $this->url = (string) $purged;
148 private function call(): string
151 return $this->curl->exec();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Stores calendar categories.
Reader for remote ical calendars.
static _delete(int $a_entry_id)
__construct(string $a_url)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
importIcal(ilCalendarCategory $cat)
static _getAssignedAppointments(array $a_cat_id)
Get assigned apointments.
static _deleteByCategoryId(int $a_cat_id)
Delete assignments by category id public.