|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Collaboration diagram for ilECSSetting:Public Member Functions | |
| setTitle (string $a_title) | |
| Set title. More... | |
| getTitle () | |
| Get title. More... | |
| setAuthType ($a_auth_type) | |
| Set auth type. More... | |
| getAuthType () | |
| Get auth type. More... | |
| setAuthUser ($a_user) | |
| Set apache auth user. More... | |
| getAuthUser () | |
| Get apache auth user. More... | |
| setAuthPass ($a_pass) | |
| Set Apache auth password. More... | |
| getAuthPass () | |
| Get auth password. More... | |
| getServerId () | |
| Get current server id. More... | |
| setEnabledStatus (bool $status) | |
| en/disable ecs functionality More... | |
| isEnabled () | |
| is enabled More... | |
| setServer (string $a_server) | |
| set server More... | |
| getServer () | |
| get server More... | |
| getServerURI () | |
| get complete server uri More... | |
| setProtocol (int $a_prot) | |
| set protocol More... | |
| getProtocol () | |
| get protocol More... | |
| setPort (int $a_port) | |
| set port More... | |
| getPort () | |
| get port More... | |
| setClientCertPath ($a_path) | |
| getClientCertPath () | |
| get certificate path More... | |
| setCACertPath (string $a_ca) | |
| set ca cert path More... | |
| getCACertPath () | |
| get ca cert path More... | |
| getKeyPath () | |
| get key path More... | |
| setKeyPath (string $a_path) | |
| set key path More... | |
| getKeyPassword () | |
| get key password More... | |
| setKeyPassword (string $a_pass) | |
| set key password More... | |
| setImportId (int $a_id) | |
| set import id Object of category, that store new remote courses More... | |
| getImportId () | |
| get import id More... | |
| setCertSerialNumber (string $a_cert_serial) | |
| set cert serial number More... | |
| getCertSerialNumber () | |
| get cert serial number More... | |
| getGlobalRole () | |
| get global role More... | |
| setGlobalRole (int $a_role_id) | |
| set default global role More... | |
| setDuration (int $a_duration) | |
| set Duration More... | |
| getDuration () | |
| get duration More... | |
| getUserRecipients () | |
| Get new user recipients. More... | |
| getUserRecipientsAsString () | |
| Get new user recipients. More... | |
| setUserRecipients (array $a_logins) | |
| set user recipients More... | |
| getEContentRecipients () | |
| get Econtent recipients More... | |
| getEContentRecipientsAsString () | |
| get EContent recipients as string More... | |
| setEContentRecipients (array $a_logins) | |
| set EContent recipients More... | |
| getApprovalRecipients () | |
| get approval recipients More... | |
| getApprovalRecipientsAsString () | |
| get approval recipients as string More... | |
| setApprovalRecipients (array $a_rcp) | |
| set approval recipients More... | |
| validate () | |
| Validate settings. More... | |
| checkImportId () | |
| check import id More... | |
| save () | |
| save settings More... | |
| update () | |
| Update setting. More... | |
| delete () | |
| Delete. More... | |
| fetchCertificateExpiration () | |
| Fetch validity (expired date) More... | |
| __clone () | |
| Overwritten clone method Reset all connection settings. More... | |
Static Public Member Functions | |
| static | getInstanceByServerId (int $a_server_id) |
| Get singleton instance per server. More... | |
| static | lookupAuthMode () |
| Lookup auth mode. More... | |
| static | ecsConfigured () |
| Checks if an ecs server is configured. More... | |
Data Fields | |
| const | DEFAULT_AUTH_MODE = 'ldap' |
| 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 | ERROR_CERT_EXPIRED = 'ecs_certificate_expired' |
| const | AUTH_CERTIFICATE = 1 |
| const | AUTH_APACHE = 2 |
| const | DEFAULT_DURATION = 6 |
| const | PROTOCOL_HTTP = 0 |
| const | PROTOCOL_HTTPS = 1 |
Static Protected Attributes | |
| static array | $instances = null |
Private Member Functions | |
| __construct ($a_server_id=0) | |
| Singleton contructor. More... | |
| fetchSerialID () | |
| Fetch serial ID from cert. More... | |
| read () | |
| Read settings. More... | |
Private Attributes | |
| int | $server_id |
| bool | $active = false |
| string | $title = '' |
| int | $auth_type = self::AUTH_CERTIFICATE |
| string | $server = '' |
| int | $protocol = self::PROTOCOL_HTTPS |
| int | $port = 0 |
| string | $client_cert_path = '' |
| string | $ca_cert_path = '' |
| string | $cert_serial_number = '' |
| string | $key_path = '' |
| string | $key_password = '' |
| int | $import_id = 0 |
| int | $global_role = 0 |
| int | $duration = 0 |
| string | $auth_user = '' |
| string | $auth_pass = '' |
| array | $user_recipients = [] |
| array | $econtent_recipients = [] |
| array | $approval_recipients = [] |
| ilDBInterface | $db |
| ilLogger | $log |
| ilObjectDataCache | $objDataCache |
| ilTree | $tree |
Definition at line 23 of file class.ilECSSetting.php.
|
private |
Singleton contructor.
Definition at line 74 of file class.ilECSSetting.php.
Here is the call graph for this function:| ilECSSetting::__clone | ( | ) |
Overwritten clone method Reset all connection settings.
Definition at line 753 of file class.ilECSSetting.php.
References getTitle(), setAuthPass(), setAuthType(), setAuthUser(), setCACertPath(), setCertSerialNumber(), setClientCertPath(), setEnabledStatus(), setKeyPassword(), setKeyPath(), setPort(), setProtocol(), setServer(), and setTitle().
Here is the call graph for this function:| ilECSSetting::checkImportId | ( | ) |
check import id
Definition at line 542 of file class.ilECSSetting.php.
References getImportId().
Referenced by validate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSSetting::delete | ( | ) |
Delete.
Definition at line 625 of file class.ilECSSetting.php.
References ilECSNodeMappingAssignment\deleteByServerId(), ilECSCmsData\deleteByServerId(), ilECSImportManager\getInstance(), ilECSExportManager\getInstance(), ilECSCommunityCache\getInstance(), ilECSDataMappingSettings\getInstanceByServerId(), and getServerId().
Here is the call graph for this function:
|
static |
Checks if an ecs server is configured.
Definition at line 109 of file class.ilECSSetting.php.
References ilECSServerSettings\getInstance().
Referenced by ilAdvancedMDRecord\_getAllRecordsByObjectType(), ilAdvancedMDRecord\_getAssignableObjectTypes(), and ilObjRole\_removeObjectId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSSetting::fetchCertificateExpiration | ( | ) |
Fetch validity (expired date)
Definition at line 664 of file class.ilECSSetting.php.
References ilDatePresentation\formatDate(), getAuthType(), getClientCertPath(), and IL_CAL_UNIX.
Referenced by validate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Fetch serial ID from cert.
Definition at line 684 of file class.ilECSSetting.php.
References getClientCertPath(), and setCertSerialNumber().
Referenced by validate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSSetting::getApprovalRecipients | ( | ) |
get approval recipients
Definition at line 475 of file class.ilECSSetting.php.
References $approval_recipients.
Referenced by ilECSObjectSettings\sendNewContentNotification().
Here is the caller graph for this function:| ilECSSetting::getApprovalRecipientsAsString | ( | ) |
get approval recipients as string
Definition at line 483 of file class.ilECSSetting.php.
Referenced by ilECSObjectSettings\sendNewContentNotification().
Here is the caller graph for this function:| ilECSSetting::getAuthPass | ( | ) |
Get auth password.
Definition at line 174 of file class.ilECSSetting.php.
References $auth_pass.
Referenced by validate().
Here is the caller graph for this function:| ilECSSetting::getAuthType | ( | ) |
Get auth type.
Definition at line 142 of file class.ilECSSetting.php.
References $auth_type.
Referenced by fetchCertificateExpiration(), and validate().
Here is the caller graph for this function:| ilECSSetting::getAuthUser | ( | ) |
Get apache auth user.
Definition at line 158 of file class.ilECSSetting.php.
References $auth_user.
Referenced by validate().
Here is the caller graph for this function:| ilECSSetting::getCACertPath | ( | ) |
get ca cert path
Definition at line 313 of file class.ilECSSetting.php.
References $ca_cert_path.
Referenced by validate().
Here is the caller graph for this function:| ilECSSetting::getCertSerialNumber | ( | ) |
get cert serial number
Definition at line 382 of file class.ilECSSetting.php.
References $cert_serial_number.
| ilECSSetting::getClientCertPath | ( | ) |
get certificate path
Definition at line 295 of file class.ilECSSetting.php.
References $client_cert_path.
Referenced by fetchCertificateExpiration(), fetchSerialID(), and validate().
Here is the caller graph for this function:| ilECSSetting::getDuration | ( | ) |
get duration
Definition at line 414 of file class.ilECSSetting.php.
Referenced by ilECSAppEventListener\extendAccount(), and validate().
Here is the caller graph for this function:| ilECSSetting::getEContentRecipients | ( | ) |
get Econtent recipients
Definition at line 449 of file class.ilECSSetting.php.
References $econtent_recipients.
| ilECSSetting::getEContentRecipientsAsString | ( | ) |
get EContent recipients as string
Definition at line 457 of file class.ilECSSetting.php.
| ilECSSetting::getGlobalRole | ( | ) |
get global role
Definition at line 390 of file class.ilECSSetting.php.
References $global_role.
Referenced by ilECSObjectSettings\handlePermissionUpdate(), and validate().
Here is the caller graph for this function:| ilECSSetting::getImportId | ( | ) |
get import id
Definition at line 366 of file class.ilECSSetting.php.
References $import_id.
Referenced by checkImportId(), ilRemoteObjectBase\createFromECSEContent(), and validate().
Here is the caller graph for this function:
|
static |
Get singleton instance per server.
| int | $a_server_id |
Definition at line 92 of file class.ilECSSetting.php.
Referenced by ilECSDataMappingSettings\__construct(), ilECSMappingSettingsGUI\__construct(), ilECSTaskScheduler\_getInstanceByServerId(), ilECSObjectSettings\_handleDelete(), ilRemoteObjectBase\createAuthResource(), ilECSServerTableGUI\fillRow(), ilRemoteObjectBase\getFullRemoteLink(), ilECSCommunityReader\getInstanceByServerId(), ilECSCategoryMapping\getMatchingCategory(), ilECSNodeMappingTreeTableGUI\getServer(), ilECSObjectSettings\handleContentUpdate(), ilECSAppEventListener\handleNewAccountCreation(), ilECSObjectSettings\handleSettings(), ilECSAppEventListener\initServer(), ilECSSettingsGUI\initSettings(), ilECSEContentDetails\loadFromServer(), ilECSTreeReader\read(), ilECSServerSettings\readServers(), ilRemoteObjectBase\sendNewContentNotification(), and ilECSAppEventListener\updateEnrolmentStatus().
Here is the caller graph for this function:| ilECSSetting::getKeyPassword | ( | ) |
get key password
Definition at line 339 of file class.ilECSSetting.php.
References $key_password.
Referenced by validate().
Here is the caller graph for this function:| ilECSSetting::getKeyPath | ( | ) |
get key path
Definition at line 321 of file class.ilECSSetting.php.
References $key_path.
Referenced by validate().
Here is the caller graph for this function:| ilECSSetting::getPort | ( | ) |
get port
Definition at line 282 of file class.ilECSSetting.php.
References $port.
Referenced by getServerURI(), and validate().
Here is the caller graph for this function:| ilECSSetting::getProtocol | ( | ) |
get protocol
Definition at line 266 of file class.ilECSSetting.php.
References $protocol.
Referenced by getServerURI().
Here is the caller graph for this function:| ilECSSetting::getServer | ( | ) |
get server
Definition at line 215 of file class.ilECSSetting.php.
References $server.
Referenced by getServerURI(), and validate().
Here is the caller graph for this function:| ilECSSetting::getServerId | ( | ) |
Get current server id.
Definition at line 182 of file class.ilECSSetting.php.
References $server_id.
Referenced by ilECSCommunityTableGUI\__construct(), ilECSCommunityReader\__construct(), ilECSObjectSettings\addMetadataToJson(), ilRemoteObjectBase\createFromECSEContent(), delete(), ilECSObjectSettings\doUpdate(), ilECSCmsTreeCommandQueueHandler\handleCreate(), ilRemoteObjectBase\handleDelete(), ilECSObjectSettings\handleSettingsForServer(), ilECSCmsTreeCommandQueueHandler\handleUpdate(), ilRemoteObjectBase\handleUpdate(), ilRemoteObjectBase\importMetadataFromJson(), read(), ilECSObjectSettings\sendNewContentNotification(), ilECSAppEventListener\sendNotification(), ilObjRemoteCourse\updateCustomFromECSContent(), and ilRemoteObjectBase\updateFromECSContent().
Here is the caller graph for this function:| ilECSSetting::getServerURI | ( | ) |
get complete server uri
Definition at line 223 of file class.ilECSSetting.php.
References ILIAS\LTI\ToolProvider\$key, getPort(), getProtocol(), and getServer().
Here is the call graph for this function:| ilECSSetting::getTitle | ( | ) |
Get title.
Definition at line 126 of file class.ilECSSetting.php.
References $title.
Referenced by __clone().
Here is the caller graph for this function:| ilECSSetting::getUserRecipients | ( | ) |
Get new user recipients.
Definition at line 422 of file class.ilECSSetting.php.
References $user_recipients.
Referenced by ilECSAppEventListener\sendNotification().
Here is the caller graph for this function:| ilECSSetting::getUserRecipientsAsString | ( | ) |
Get new user recipients.
Definition at line 430 of file class.ilECSSetting.php.
Referenced by ilECSAppEventListener\sendNotification().
Here is the caller graph for this function:| ilECSSetting::isEnabled | ( | ) |
is enabled
Definition at line 199 of file class.ilECSSetting.php.
References $active.
Referenced by ilECSServerSettings\getServers(), and validate().
Here is the caller graph for this function:
|
static |
Lookup auth mode.
Definition at line 100 of file class.ilECSSetting.php.
|
private |
Read settings.
Definition at line 715 of file class.ilECSSetting.php.
References $res, ilDBConstants\FETCHMODE_ASSOC, getServerId(), setAuthPass(), setAuthType(), setAuthUser(), setCACertPath(), setCertSerialNumber(), setClientCertPath(), setDuration(), setEnabledStatus(), setGlobalRole(), setImportId(), setKeyPassword(), setKeyPath(), setPort(), setProtocol(), setServer(), and setTitle().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSSetting::save | ( | ) |
save settings
Definition at line 559 of file class.ilECSSetting.php.
Referenced by ilECSSettingsGUI\cp().
Here is the caller graph for this function:| ilECSSetting::setApprovalRecipients | ( | array | $a_rcp | ) |
set approval recipients
Definition at line 491 of file class.ilECSSetting.php.
| ilECSSetting::setAuthPass | ( | $a_pass | ) |
Set Apache auth password.
Definition at line 166 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setAuthType | ( | $a_auth_type | ) |
Set auth type.
Definition at line 134 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setAuthUser | ( | $a_user | ) |
Set apache auth user.
Definition at line 150 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setCACertPath | ( | string | $a_ca | ) |
set ca cert path
| string | ca cert path |
Definition at line 305 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setCertSerialNumber | ( | string | $a_cert_serial | ) |
set cert serial number
Definition at line 374 of file class.ilECSSetting.php.
Referenced by __clone(), fetchSerialID(), and read().
Here is the caller graph for this function:| ilECSSetting::setClientCertPath | ( | $a_path | ) |
Definition at line 287 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setDuration | ( | int | $a_duration | ) |
set Duration
Definition at line 406 of file class.ilECSSetting.php.
Referenced by read().
Here is the caller graph for this function:| ilECSSetting::setEContentRecipients | ( | array | $a_logins | ) |
set EContent recipients
| array | of user obj_ids |
Definition at line 467 of file class.ilECSSetting.php.
| ilECSSetting::setEnabledStatus | ( | bool | $status | ) |
en/disable ecs functionality
Definition at line 191 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setGlobalRole | ( | int | $a_role_id | ) |
set default global role
Definition at line 398 of file class.ilECSSetting.php.
Referenced by read().
Here is the caller graph for this function:| ilECSSetting::setImportId | ( | int | $a_id | ) |
set import id Object of category, that store new remote courses
Definition at line 358 of file class.ilECSSetting.php.
Referenced by read().
Here is the caller graph for this function:| ilECSSetting::setKeyPassword | ( | string | $a_pass | ) |
set key password
| string | key password |
Definition at line 349 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setKeyPath | ( | string | $a_path | ) |
set key path
| string | key path |
Definition at line 331 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setPort | ( | int | $a_port | ) |
set port
Definition at line 274 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setProtocol | ( | int | $a_prot | ) |
set protocol
Definition at line 258 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setServer | ( | string | $a_server | ) |
set server
Definition at line 207 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setTitle | ( | string | $a_title | ) |
Set title.
Definition at line 117 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setUserRecipients | ( | array | $a_logins | ) |
set user recipients
| array | of recipients (array of user login names) |
Definition at line 441 of file class.ilECSSetting.php.
| ilECSSetting::update | ( | ) |
| ilECSSetting::validate | ( | ) |
Validate settings.
Definition at line 501 of file class.ilECSSetting.php.
References checkImportId(), fetchCertificateExpiration(), fetchSerialID(), getAuthPass(), getAuthType(), getAuthUser(), getCACertPath(), getClientCertPath(), getDuration(), getGlobalRole(), getImportId(), getKeyPassword(), getKeyPath(), getPort(), getServer(), and isEnabled().
Here is the call graph for this function:
|
private |
Definition at line 44 of file class.ilECSSetting.php.
Referenced by isEnabled().
|
private |
Definition at line 64 of file class.ilECSSetting.php.
Referenced by getApprovalRecipients().
|
private |
Definition at line 60 of file class.ilECSSetting.php.
Referenced by getAuthPass().
|
private |
Definition at line 46 of file class.ilECSSetting.php.
Referenced by getAuthType().
|
private |
Definition at line 59 of file class.ilECSSetting.php.
Referenced by getAuthUser().
|
private |
Definition at line 51 of file class.ilECSSetting.php.
Referenced by getCACertPath().
|
private |
Definition at line 52 of file class.ilECSSetting.php.
Referenced by getCertSerialNumber().
|
private |
Definition at line 50 of file class.ilECSSetting.php.
Referenced by getClientCertPath().
|
private |
Definition at line 66 of file class.ilECSSetting.php.
|
private |
Definition at line 57 of file class.ilECSSetting.php.
|
private |
Definition at line 63 of file class.ilECSSetting.php.
Referenced by getEContentRecipients().
|
private |
Definition at line 56 of file class.ilECSSetting.php.
Referenced by getGlobalRole().
|
private |
Definition at line 55 of file class.ilECSSetting.php.
Referenced by getImportId().
|
staticprotected |
Definition at line 41 of file class.ilECSSetting.php.
|
private |
Definition at line 54 of file class.ilECSSetting.php.
Referenced by getKeyPassword().
|
private |
Definition at line 53 of file class.ilECSSetting.php.
Referenced by getKeyPath().
|
private |
Definition at line 67 of file class.ilECSSetting.php.
|
private |
Definition at line 68 of file class.ilECSSetting.php.
|
private |
Definition at line 49 of file class.ilECSSetting.php.
Referenced by getPort().
|
private |
Definition at line 48 of file class.ilECSSetting.php.
Referenced by getProtocol().
|
private |
Definition at line 47 of file class.ilECSSetting.php.
Referenced by getServer().
|
private |
Definition at line 43 of file class.ilECSSetting.php.
Referenced by getServerId().
|
private |
Definition at line 45 of file class.ilECSSetting.php.
Referenced by getTitle().
|
private |
Definition at line 69 of file class.ilECSSetting.php.
|
private |
Definition at line 62 of file class.ilECSSetting.php.
Referenced by getUserRecipients().
| const ilECSSetting::AUTH_APACHE = 2 |
Definition at line 33 of file class.ilECSSetting.php.
Referenced by ilECSSettingsGUI\initSettingsForm(), and ilECSConnector\prepareConnection().
| const ilECSSetting::AUTH_CERTIFICATE = 1 |
Definition at line 32 of file class.ilECSSetting.php.
Referenced by ilECSSettingsGUI\initSettingsForm(), and ilECSConnector\prepareConnection().
| const ilECSSetting::DEFAULT_AUTH_MODE = 'ldap' |
Definition at line 25 of file class.ilECSSetting.php.
| const ilECSSetting::DEFAULT_DURATION = 6 |
Definition at line 35 of file class.ilECSSetting.php.
| const ilECSSetting::ERROR_CERT_EXPIRED = 'ecs_certificate_expired' |
Definition at line 30 of file class.ilECSSetting.php.
| const ilECSSetting::ERROR_EXTRACT_SERIAL = 'ecs_error_extract_serial' |
Definition at line 27 of file class.ilECSSetting.php.
| const ilECSSetting::ERROR_INVALID_IMPORT_ID = 'ecs_check_import_id' |
Definition at line 29 of file class.ilECSSetting.php.
| const ilECSSetting::ERROR_REQUIRED = 'fill_out_all_required_fields' |
Definition at line 28 of file class.ilECSSetting.php.
| const ilECSSetting::PROTOCOL_HTTP = 0 |
Definition at line 38 of file class.ilECSSetting.php.
| const ilECSSetting::PROTOCOL_HTTPS = 1 |
Definition at line 39 of file class.ilECSSetting.php.
Referenced by ilECSSettingsGUI\initSettingsForm().