ILIAS
Release_4_1_x_branch Revision 61804
|
Public Member Functions | |
setEnabledStatus ($a_status) | |
en/disable ecs functionality | |
isEnabled () | |
is enabled | |
setServer ($a_server) | |
set server | |
getServer () | |
get server | |
getServerURI () | |
get complete server uri | |
setProtocol ($a_prot) | |
set protocol | |
getProtocol () | |
get protocol | |
setPort ($a_port) | |
set port | |
getPort () | |
get port | |
setPollingTime ($a_time) | |
set polling time | |
getPollingTime () | |
get polling time | |
getPollingTimeSeconds () | |
get polling time seconds (<60) | |
getPollingTimeMinutes () | |
get polling time minutes | |
setPollingTimeMS ($a_min, $a_sec) | |
Set polling time. | |
setClientCertPath ($a_path) | |
set | |
getClientCertPath () | |
get certificate path | |
setCACertPath ($a_ca) | |
set ca cert path | |
getCACertPath () | |
get ca cert path | |
getKeyPath () | |
get key path | |
setKeyPath ($a_path) | |
set key path | |
getKeyPassword () | |
get key password | |
setKeyPassword ($a_pass) | |
set key password | |
setImportId ($a_id) | |
set import id Object of category, that store new remote courses | |
getImportId () | |
get import id | |
setCertSerialNumber ($a_cert_serial) | |
set cert serial number | |
getCertSerialNumber () | |
get cert serial number | |
getGlobalRole () | |
get global role | |
setGlobalRole ($a_role_id) | |
set default global role | |
setDuration ($a_duration) | |
set Duration | |
getDuration () | |
get duration | |
getUserRecipients () | |
Get new user recipients. | |
getUserRecipientsAsString () | |
Get new user recipients. | |
setUserRecipients ($a_logins) | |
set user recipients | |
getEContentRecipients () | |
get Econtent recipients | |
getEContentRecipientsAsString () | |
get EContent recipients as string | |
setEContentRecipients ($a_logins) | |
set EContent recipients | |
getApprovalRecipients () | |
get approval recipients | |
getApprovalRecipientsAsString () | |
get approval recipients as string | |
setApprovalRecipients ($a_rcp) | |
set approval recipients | |
validate () | |
Validate settings. | |
checkImportId () | |
check import id | |
save () | |
save settings |
Static Public Member Functions | |
static | _getInstance () |
singleton getInstance |
Data Fields | |
const | ERROR_EXTRACT_SERIAL = 'ecs_error_extract_serial' |
const | ERROR_REQUIRED = 'fill_out_all_required_fields' |
const | ERROR_INVALID_IMPORT_ID = 'ecs_check_import_id' |
const | DEFAULT_DURATION = 6 |
const | PROTOCOL_HTTP = 0 |
const | PROTOCOL_HTTPS = 1 |
Static Protected Attributes | |
static | $instance = null |
Private Member Functions | |
__construct () | |
Singleton contructor. | |
fetchSerialID () | |
Fetch serial ID from cert. | |
initStorage () | |
Init storage class (ilSetting) private. | |
read () | |
Read settings. |
Private Attributes | |
$active = false | |
$server | |
$protocol | |
$port | |
$client_cert_path | |
$ca_cert_path | |
$key_path | |
$key_pathword | |
$polling | |
$import_id | |
$cert_serial | |
$global_role | |
$duration | |
$user_recipients = array() | |
$econtent_recipients = array() | |
$approval_recipients = array() |
Definition at line 33 of file class.ilECSSettings.php.
|
private |
Singleton contructor.
private
Definition at line 70 of file class.ilECSSettings.php.
References initStorage(), and read().
|
static |
singleton getInstance
public
Definition at line 83 of file class.ilECSSettings.php.
References $instance.
Referenced by ilECSEContentReader\__construct(), ilECSConnector\__construct(), ilECSParticipant\__construct(), ilECSEventQueueReader\__construct(), ilObjRemoteCourse\_createFromECSEContent(), ilAuthUtils\_getActiveAuthModes(), ilECSContentWriter\_handleDelete(), ilECSAppEventListener\_sendNotification(), ilInfoScreenGUI\addObjectSections(), ilObjCourseGUI\fillECSExportSettings(), ilECSCategoryMapping\getMatchingCategory(), ilAdvancedMDRecordGUI\handleECSDefinitions(), ilECSAppEventListener\handleEvent(), ilAuthContainerECS\initECSServices(), ilAuthContainerECS\initSettings(), ilECSSettingsGUI\initSettings(), ilAdvancedMDRecordGUI\loadECSDurationPost(), ilECSContentWriter\sendNewContentNotification(), ilObjCourse\updateECSContent(), and ilObjCourseGUI\updateECSExportSettings().
ilECSSettings::checkImportId | ( | ) |
check import id
public
Definition at line 589 of file class.ilECSSettings.php.
References getImportId().
Referenced by validate().
|
private |
Fetch serial ID from cert.
private
Definition at line 640 of file class.ilECSSettings.php.
References $ilLog, getClientCertPath(), and setCertSerialNumber().
Referenced by validate().
ilECSSettings::getApprovalRecipients | ( | ) |
get approval recipients
public
Definition at line 522 of file class.ilECSSettings.php.
ilECSSettings::getApprovalRecipientsAsString | ( | ) |
get approval recipients as string
public
@return |
Definition at line 534 of file class.ilECSSettings.php.
References $approval_recipients.
Referenced by save().
ilECSSettings::getCACertPath | ( | ) |
get ca cert path
public
Definition at line 306 of file class.ilECSSettings.php.
References $ca_cert_path.
Referenced by save(), and validate().
ilECSSettings::getCertSerialNumber | ( | ) |
get cert serial number
public
Definition at line 397 of file class.ilECSSettings.php.
Referenced by save().
ilECSSettings::getClientCertPath | ( | ) |
get certificate path
public
Definition at line 283 of file class.ilECSSettings.php.
References $client_cert_path.
Referenced by fetchSerialID(), save(), and validate().
ilECSSettings::getDuration | ( | ) |
get duration
public
Definition at line 443 of file class.ilECSSettings.php.
References DEFAULT_DURATION.
Referenced by save(), and validate().
ilECSSettings::getEContentRecipients | ( | ) |
get Econtent recipients
public
Definition at line 488 of file class.ilECSSettings.php.
ilECSSettings::getEContentRecipientsAsString | ( | ) |
get EContent recipients as string
public
Definition at line 499 of file class.ilECSSettings.php.
References $econtent_recipients.
Referenced by save().
ilECSSettings::getGlobalRole | ( | ) |
get global role
public
Definition at line 408 of file class.ilECSSettings.php.
References $global_role.
Referenced by save(), and validate().
ilECSSettings::getImportId | ( | ) |
get import id
public
Definition at line 374 of file class.ilECSSettings.php.
References $import_id.
Referenced by checkImportId(), save(), and validate().
ilECSSettings::getKeyPassword | ( | ) |
get key password
public
Definition at line 340 of file class.ilECSSettings.php.
Referenced by save(), and validate().
ilECSSettings::getKeyPath | ( | ) |
get key path
public
Definition at line 317 of file class.ilECSSettings.php.
References $key_path.
Referenced by save(), and validate().
ilECSSettings::getPollingTime | ( | ) |
get polling time
public
Definition at line 226 of file class.ilECSSettings.php.
References $polling.
Referenced by save(), and validate().
ilECSSettings::getPollingTimeMinutes | ( | ) |
get polling time minutes
public
Definition at line 248 of file class.ilECSSettings.php.
ilECSSettings::getPollingTimeSeconds | ( | ) |
get polling time seconds (<60)
public
Definition at line 237 of file class.ilECSSettings.php.
ilECSSettings::getPort | ( | ) |
get port
public
Definition at line 203 of file class.ilECSSettings.php.
References $port.
Referenced by getServerURI(), save(), and validate().
ilECSSettings::getProtocol | ( | ) |
get protocol
public
Definition at line 179 of file class.ilECSSettings.php.
References $protocol.
Referenced by getServerURI(), and save().
ilECSSettings::getServer | ( | ) |
get server
public
Definition at line 134 of file class.ilECSSettings.php.
References $server.
Referenced by getServerURI(), save(), and validate().
ilECSSettings::getServerURI | ( | ) |
get complete server uri
public
Definition at line 145 of file class.ilECSSettings.php.
References getPort(), getProtocol(), and getServer().
ilECSSettings::getUserRecipients | ( | ) |
Get new user recipients.
public
Definition at line 454 of file class.ilECSSettings.php.
ilECSSettings::getUserRecipientsAsString | ( | ) |
Get new user recipients.
public
Definition at line 465 of file class.ilECSSettings.php.
References $user_recipients.
Referenced by save().
|
private |
Init storage class (ilSetting) private.
Definition at line 688 of file class.ilECSSettings.php.
Referenced by __construct().
ilECSSettings::isEnabled | ( | ) |
is enabled
public
Definition at line 110 of file class.ilECSSettings.php.
References $active.
Referenced by save(), and validate().
|
private |
Read settings.
private
Definition at line 699 of file class.ilECSSettings.php.
References setCACertPath(), setCertSerialNumber(), setClientCertPath(), setDuration(), setEnabledStatus(), setGlobalRole(), setImportId(), setKeyPassword(), setKeyPath(), setPollingTime(), setPort(), setProtocol(), and setServer().
Referenced by __construct().
ilECSSettings::save | ( | ) |
save settings
public
Definition at line 614 of file class.ilECSSettings.php.
References getApprovalRecipientsAsString(), getCACertPath(), getCertSerialNumber(), getClientCertPath(), getDuration(), getEContentRecipientsAsString(), getGlobalRole(), getImportId(), getKeyPassword(), getKeyPath(), getPollingTime(), getPort(), getProtocol(), getServer(), getUserRecipientsAsString(), and isEnabled().
ilECSSettings::setApprovalRecipients | ( | $a_rcp | ) |
set approval recipients
public
string | recipients |
Definition at line 545 of file class.ilECSSettings.php.
ilECSSettings::setCACertPath | ( | $a_ca | ) |
set ca cert path
public
string | ca cert path |
Definition at line 295 of file class.ilECSSettings.php.
Referenced by read().
ilECSSettings::setCertSerialNumber | ( | $a_cert_serial | ) |
set cert serial number
public
Definition at line 386 of file class.ilECSSettings.php.
Referenced by fetchSerialID(), and read().
ilECSSettings::setClientCertPath | ( | $a_path | ) |
set
public
Definition at line 273 of file class.ilECSSettings.php.
Referenced by read().
ilECSSettings::setDuration | ( | $a_duration | ) |
set Duration
public
int | duration |
Definition at line 432 of file class.ilECSSettings.php.
Referenced by read().
ilECSSettings::setEContentRecipients | ( | $a_logins | ) |
set EContent recipients
public
array | of user obj_ids |
Definition at line 511 of file class.ilECSSettings.php.
ilECSSettings::setEnabledStatus | ( | $a_status | ) |
en/disable ecs functionality
public
bool | status |
Definition at line 99 of file class.ilECSSettings.php.
Referenced by read().
ilECSSettings::setGlobalRole | ( | $a_role_id | ) |
set default global role
public
int | role_id |
Definition at line 420 of file class.ilECSSettings.php.
Referenced by read().
ilECSSettings::setImportId | ( | $a_id | ) |
set import id Object of category, that store new remote courses
public
Definition at line 364 of file class.ilECSSettings.php.
Referenced by read().
ilECSSettings::setKeyPassword | ( | $a_pass | ) |
set key password
public
string | key password |
Definition at line 352 of file class.ilECSSettings.php.
Referenced by read().
ilECSSettings::setKeyPath | ( | $a_path | ) |
set key path
public
string | key path |
Definition at line 329 of file class.ilECSSettings.php.
Referenced by read().
ilECSSettings::setPollingTime | ( | $a_time | ) |
set polling time
public
int | polling time |
Definition at line 215 of file class.ilECSSettings.php.
Referenced by read(), and setPollingTimeMS().
ilECSSettings::setPollingTimeMS | ( | $a_min, | |
$a_sec | |||
) |
Set polling time.
public
int | minutes |
int | seconds |
Definition at line 261 of file class.ilECSSettings.php.
References setPollingTime().
ilECSSettings::setPort | ( | $a_port | ) |
set port
public
int | port |
Definition at line 191 of file class.ilECSSettings.php.
Referenced by read().
ilECSSettings::setProtocol | ( | $a_prot | ) |
set protocol
public
Definition at line 168 of file class.ilECSSettings.php.
Referenced by read().
ilECSSettings::setServer | ( | $a_server | ) |
set server
public
Definition at line 122 of file class.ilECSSettings.php.
Referenced by read().
ilECSSettings::setUserRecipients | ( | $a_logins | ) |
set user recipients
public
array | of recipients (array of user login names) |
Definition at line 477 of file class.ilECSSettings.php.
ilECSSettings::validate | ( | ) |
Validate settings.
public
void |
Definition at line 558 of file class.ilECSSettings.php.
References checkImportId(), ERROR_EXTRACT_SERIAL, ERROR_INVALID_IMPORT_ID, ERROR_REQUIRED, fetchSerialID(), getCACertPath(), getClientCertPath(), getDuration(), getGlobalRole(), getImportId(), getKeyPassword(), getKeyPath(), getPollingTime(), getPort(), getServer(), and isEnabled().
|
private |
Definition at line 47 of file class.ilECSSettings.php.
Referenced by isEnabled().
|
private |
Definition at line 63 of file class.ilECSSettings.php.
Referenced by getApprovalRecipientsAsString().
|
private |
Definition at line 52 of file class.ilECSSettings.php.
Referenced by getCACertPath().
|
private |
Definition at line 57 of file class.ilECSSettings.php.
|
private |
Definition at line 51 of file class.ilECSSettings.php.
Referenced by getClientCertPath().
|
private |
Definition at line 59 of file class.ilECSSettings.php.
|
private |
Definition at line 62 of file class.ilECSSettings.php.
Referenced by getEContentRecipientsAsString().
|
private |
Definition at line 58 of file class.ilECSSettings.php.
Referenced by getGlobalRole().
|
private |
Definition at line 56 of file class.ilECSSettings.php.
Referenced by getImportId().
|
staticprotected |
Definition at line 45 of file class.ilECSSettings.php.
Referenced by _getInstance().
|
private |
Definition at line 53 of file class.ilECSSettings.php.
Referenced by getKeyPath().
|
private |
Definition at line 54 of file class.ilECSSettings.php.
|
private |
Definition at line 55 of file class.ilECSSettings.php.
Referenced by getPollingTime().
|
private |
Definition at line 50 of file class.ilECSSettings.php.
Referenced by getPort().
|
private |
Definition at line 49 of file class.ilECSSettings.php.
Referenced by getProtocol().
|
private |
Definition at line 48 of file class.ilECSSettings.php.
Referenced by getServer().
|
private |
Definition at line 61 of file class.ilECSSettings.php.
Referenced by getUserRecipientsAsString().
const ilECSSettings::DEFAULT_DURATION = 6 |
Definition at line 39 of file class.ilECSSettings.php.
Referenced by getDuration().
const ilECSSettings::ERROR_EXTRACT_SERIAL = 'ecs_error_extract_serial' |
Definition at line 35 of file class.ilECSSettings.php.
Referenced by validate().
const ilECSSettings::ERROR_INVALID_IMPORT_ID = 'ecs_check_import_id' |
Definition at line 37 of file class.ilECSSettings.php.
Referenced by validate().
const ilECSSettings::ERROR_REQUIRED = 'fill_out_all_required_fields' |
Definition at line 36 of file class.ilECSSettings.php.
Referenced by validate().
const ilECSSettings::PROTOCOL_HTTP = 0 |
Definition at line 42 of file class.ilECSSettings.php.
const ilECSSettings::PROTOCOL_HTTPS = 1 |
Definition at line 43 of file class.ilECSSettings.php.
Referenced by ilECSSettingsGUI\initSettingsForm(), and ilECSConnector\prepareConnection().