101 $this->active = $a_status;
124 $this->server = $a_server;
149 case self::PROTOCOL_HTTP:
153 case self::PROTOCOL_HTTPS:
170 $this->protocol = $a_prot;
193 $this->port = $a_port;
217 $this->polling = $a_time;
239 return (
int) ($this->polling % 60);
250 return (
int) ($this->polling / 60);
275 $this->client_cert_path = $a_path;
297 $this->ca_cert_path = $a_ca;
331 $this->key_path = $a_path;
342 return $this->key_password;
354 $this->key_password = $a_pass;
366 $this->import_id = $a_id;
388 $this->cert_serial_number = $a_cert_serial;
399 return $this->cert_serial_number;
422 $this->global_role = $a_role_id;
434 $this->duration = $a_duration;
456 return explode(
',',$this->user_recipients);
479 $this->user_recipients = $a_logins;
490 return explode(
',',$this->econtent_recipients);
513 $this->econtent_recipients = $a_logins;
524 return explode(
',',$this->approval_recipients);
547 $this->approval_recipients = $a_rcp;
591 global $ilObjDataCache,$tree;
597 if($ilObjDataCache->lookupType($ilObjDataCache->lookupObjId($this->getImportId())) !=
'cat')
601 if($tree->isDeleted($this->getImportId()))
616 $this->storage->set(
'active',(
int) $this->
isEnabled());
617 $this->storage->set(
'server',$this->
getServer());
618 $this->storage->set(
'port',$this->
getPort());
619 $this->storage->set(
'protocol',$this->
getProtocol());
622 $this->storage->set(
'key_path',$this->
getKeyPath());
624 $this->storage->set(
'import_id',$this->
getImportId());
627 $this->storage->set(
'global_role',(
int) $this->
getGlobalRole());
631 $this->storage->set(
'duration',$this->
getDuration());
644 if(function_exists(
'openssl_x509_parse') and $cert = openssl_x509_parse(
'file://'.$this->
getClientCertPath()))
646 if(isset($cert[
'serialNumber']) and $cert[
'serialNumber'])
649 $ilLog->write(__METHOD__.
': Serial number is '.$cert[
'serialNumber']);
660 foreach($lines as $line)
662 if(strpos($line,
'Serial Number:') !==
false)
665 $serial_line = explode(
':',$line);
666 $serial = (int) trim($serial_line[1]);
690 include_once(
'./Services/Administration/classes/class.ilSetting.php');
701 $this->
setServer($this->storage->get(
'server'));
702 $this->
setProtocol($this->storage->get(
'protocol'));
703 $this->
setPort($this->storage->get(
'port'));
706 $this->
setKeyPath($this->storage->get(
'key_path'));
709 $this->
setImportId($this->storage->get(
'import_id'));
713 $this->econtent_recipients = $this->storage->get(
'econtent_rcp');
714 $this->approval_recipients = $this->storage->get(
'approval_rcp');
715 $this->user_recipients = $this->storage->get(
'user_rcp');
716 $this->
setDuration($this->storage->get(
'duration'));