ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
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 24 of file class.ilECSSetting.php.
|
private |
Singleton contructor.
Definition at line 75 of file class.ilECSSetting.php.
ilECSSetting::__clone | ( | ) |
Overwritten clone method Reset all connection settings.
Definition at line 754 of file class.ilECSSetting.php.
References getTitle(), setAuthPass(), setAuthType(), setAuthUser(), setCACertPath(), setCertSerialNumber(), setClientCertPath(), setEnabledStatus(), setKeyPassword(), setKeyPath(), setPort(), setProtocol(), setServer(), and setTitle().
ilECSSetting::checkImportId | ( | ) |
check import id
Definition at line 543 of file class.ilECSSetting.php.
References getImportId().
Referenced by validate().
ilECSSetting::delete | ( | ) |
Delete.
Definition at line 626 of file class.ilECSSetting.php.
References ilECSNodeMappingAssignment\deleteByServerId(), ilECSCmsData\deleteByServerId(), ilECSImportManager\getInstance(), ilECSExportManager\getInstance(), ilECSCommunityCache\getInstance(), ilECSDataMappingSettings\getInstanceByServerId(), and getServerId().
|
static |
Checks if an ecs server is configured.
Definition at line 110 of file class.ilECSSetting.php.
References ilECSServerSettings\getInstance().
Referenced by ilAdvancedMDRecord\_getAllRecordsByObjectType(), ilAdvancedMDRecord\_getAssignableObjectTypes(), and ilObjRole\_removeObjectId().
ilECSSetting::fetchCertificateExpiration | ( | ) |
Fetch validity (expired date)
Definition at line 665 of file class.ilECSSetting.php.
References ilDatePresentation\formatDate(), getAuthType(), getClientCertPath(), IL_CAL_UNIX, and null.
Referenced by validate().
|
private |
Fetch serial ID from cert.
Definition at line 685 of file class.ilECSSetting.php.
References getClientCertPath(), and setCertSerialNumber().
Referenced by validate().
ilECSSetting::getApprovalRecipients | ( | ) |
get approval recipients
Definition at line 476 of file class.ilECSSetting.php.
References $approval_recipients.
Referenced by ilECSObjectSettings\sendNewContentNotification().
ilECSSetting::getApprovalRecipientsAsString | ( | ) |
get approval recipients as string
Definition at line 484 of file class.ilECSSetting.php.
Referenced by ilECSObjectSettings\sendNewContentNotification().
ilECSSetting::getAuthPass | ( | ) |
Get auth password.
Definition at line 175 of file class.ilECSSetting.php.
References $auth_pass.
Referenced by validate().
ilECSSetting::getAuthType | ( | ) |
Get auth type.
Definition at line 143 of file class.ilECSSetting.php.
References $auth_type.
Referenced by fetchCertificateExpiration(), and validate().
ilECSSetting::getAuthUser | ( | ) |
Get apache auth user.
Definition at line 159 of file class.ilECSSetting.php.
References $auth_user.
Referenced by validate().
ilECSSetting::getCACertPath | ( | ) |
get ca cert path
Definition at line 314 of file class.ilECSSetting.php.
References $ca_cert_path.
Referenced by validate().
ilECSSetting::getCertSerialNumber | ( | ) |
get cert serial number
Definition at line 383 of file class.ilECSSetting.php.
References $cert_serial_number.
ilECSSetting::getClientCertPath | ( | ) |
get certificate path
Definition at line 296 of file class.ilECSSetting.php.
References $client_cert_path.
Referenced by fetchCertificateExpiration(), fetchSerialID(), and validate().
ilECSSetting::getDuration | ( | ) |
get duration
Definition at line 415 of file class.ilECSSetting.php.
Referenced by ilECSAppEventListener\extendAccount(), and validate().
ilECSSetting::getEContentRecipients | ( | ) |
get Econtent recipients
Definition at line 450 of file class.ilECSSetting.php.
References $econtent_recipients.
ilECSSetting::getEContentRecipientsAsString | ( | ) |
get EContent recipients as string
Definition at line 458 of file class.ilECSSetting.php.
ilECSSetting::getGlobalRole | ( | ) |
get global role
Definition at line 391 of file class.ilECSSetting.php.
References $global_role.
Referenced by ilECSObjectSettings\handlePermissionUpdate(), and validate().
ilECSSetting::getImportId | ( | ) |
get import id
Definition at line 367 of file class.ilECSSetting.php.
References $import_id.
Referenced by checkImportId(), ilRemoteObjectBase\createFromECSEContent(), and validate().
|
static |
Get singleton instance per server.
int | $a_server_id |
Definition at line 93 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().
ilECSSetting::getKeyPassword | ( | ) |
get key password
Definition at line 340 of file class.ilECSSetting.php.
References $key_password.
Referenced by validate().
ilECSSetting::getKeyPath | ( | ) |
get key path
Definition at line 322 of file class.ilECSSetting.php.
References $key_path.
Referenced by validate().
ilECSSetting::getPort | ( | ) |
get port
Definition at line 283 of file class.ilECSSetting.php.
References $port.
Referenced by getServerURI(), and validate().
ilECSSetting::getProtocol | ( | ) |
get protocol
Definition at line 267 of file class.ilECSSetting.php.
References $protocol.
Referenced by getServerURI().
ilECSSetting::getServer | ( | ) |
get server
Definition at line 216 of file class.ilECSSetting.php.
References $server.
Referenced by getServerURI(), and validate().
ilECSSetting::getServerId | ( | ) |
Get current server id.
Definition at line 183 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().
ilECSSetting::getServerURI | ( | ) |
get complete server uri
Definition at line 224 of file class.ilECSSetting.php.
References getPort(), getProtocol(), and getServer().
ilECSSetting::getTitle | ( | ) |
Get title.
Definition at line 127 of file class.ilECSSetting.php.
References $title.
Referenced by __clone().
ilECSSetting::getUserRecipients | ( | ) |
Get new user recipients.
Definition at line 423 of file class.ilECSSetting.php.
References $user_recipients.
Referenced by ilECSAppEventListener\sendNotification().
ilECSSetting::getUserRecipientsAsString | ( | ) |
Get new user recipients.
Definition at line 431 of file class.ilECSSetting.php.
Referenced by ilECSAppEventListener\sendNotification().
ilECSSetting::isEnabled | ( | ) |
is enabled
Definition at line 200 of file class.ilECSSetting.php.
References $active.
Referenced by ilECSServerSettings\getServers(), and validate().
|
static |
Lookup auth mode.
Definition at line 101 of file class.ilECSSetting.php.
|
private |
Read settings.
Definition at line 716 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().
ilECSSetting::save | ( | ) |
save settings
Definition at line 560 of file class.ilECSSetting.php.
Referenced by ilECSSettingsGUI\cp().
ilECSSetting::setApprovalRecipients | ( | array | $a_rcp | ) |
set approval recipients
Definition at line 492 of file class.ilECSSetting.php.
ilECSSetting::setAuthPass | ( | $a_pass | ) |
Set Apache auth password.
Definition at line 167 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setAuthType | ( | $a_auth_type | ) |
Set auth type.
Definition at line 135 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setAuthUser | ( | $a_user | ) |
Set apache auth user.
Definition at line 151 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setCACertPath | ( | string | $a_ca | ) |
set ca cert path
string | ca cert path |
Definition at line 306 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setCertSerialNumber | ( | string | $a_cert_serial | ) |
set cert serial number
Definition at line 375 of file class.ilECSSetting.php.
Referenced by __clone(), fetchSerialID(), and read().
ilECSSetting::setClientCertPath | ( | $a_path | ) |
Definition at line 288 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setDuration | ( | int | $a_duration | ) |
set Duration
Definition at line 407 of file class.ilECSSetting.php.
Referenced by read().
ilECSSetting::setEContentRecipients | ( | array | $a_logins | ) |
set EContent recipients
array | of user obj_ids |
Definition at line 468 of file class.ilECSSetting.php.
ilECSSetting::setEnabledStatus | ( | bool | $status | ) |
en/disable ecs functionality
Definition at line 192 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setGlobalRole | ( | int | $a_role_id | ) |
set default global role
Definition at line 399 of file class.ilECSSetting.php.
Referenced by read().
ilECSSetting::setImportId | ( | int | $a_id | ) |
set import id Object of category, that store new remote courses
Definition at line 359 of file class.ilECSSetting.php.
Referenced by read().
ilECSSetting::setKeyPassword | ( | string | $a_pass | ) |
set key password
string | key password |
Definition at line 350 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setKeyPath | ( | string | $a_path | ) |
set key path
string | key path |
Definition at line 332 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setPort | ( | int | $a_port | ) |
set port
Definition at line 275 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setProtocol | ( | int | $a_prot | ) |
set protocol
Definition at line 259 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setServer | ( | string | $a_server | ) |
set server
Definition at line 208 of file class.ilECSSetting.php.
References ILIAS\UI\examples\Progress\Bar\server().
Referenced by __clone(), and read().
ilECSSetting::setTitle | ( | string | $a_title | ) |
Set title.
Definition at line 118 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setUserRecipients | ( | array | $a_logins | ) |
set user recipients
array | of recipients (array of user login names) |
Definition at line 442 of file class.ilECSSetting.php.
ilECSSetting::update | ( | ) |
ilECSSetting::validate | ( | ) |
Validate settings.
Definition at line 502 of file class.ilECSSetting.php.
References checkImportId(), fetchCertificateExpiration(), fetchSerialID(), getAuthPass(), getAuthType(), getAuthUser(), getCACertPath(), getClientCertPath(), getDuration(), getGlobalRole(), getImportId(), getKeyPassword(), getKeyPath(), getPort(), getServer(), and isEnabled().
|
private |
Definition at line 45 of file class.ilECSSetting.php.
Referenced by isEnabled().
|
private |
Definition at line 65 of file class.ilECSSetting.php.
Referenced by getApprovalRecipients().
|
private |
Definition at line 61 of file class.ilECSSetting.php.
Referenced by getAuthPass().
|
private |
Definition at line 47 of file class.ilECSSetting.php.
Referenced by getAuthType().
|
private |
Definition at line 60 of file class.ilECSSetting.php.
Referenced by getAuthUser().
|
private |
Definition at line 52 of file class.ilECSSetting.php.
Referenced by getCACertPath().
|
private |
Definition at line 53 of file class.ilECSSetting.php.
Referenced by getCertSerialNumber().
|
private |
Definition at line 51 of file class.ilECSSetting.php.
Referenced by getClientCertPath().
|
private |
Definition at line 67 of file class.ilECSSetting.php.
|
private |
Definition at line 58 of file class.ilECSSetting.php.
|
private |
Definition at line 64 of file class.ilECSSetting.php.
Referenced by getEContentRecipients().
|
private |
Definition at line 57 of file class.ilECSSetting.php.
Referenced by getGlobalRole().
|
private |
Definition at line 56 of file class.ilECSSetting.php.
Referenced by getImportId().
|
staticprotected |
Definition at line 42 of file class.ilECSSetting.php.
|
private |
Definition at line 55 of file class.ilECSSetting.php.
Referenced by getKeyPassword().
|
private |
Definition at line 54 of file class.ilECSSetting.php.
Referenced by getKeyPath().
|
private |
Definition at line 68 of file class.ilECSSetting.php.
|
private |
Definition at line 69 of file class.ilECSSetting.php.
|
private |
Definition at line 50 of file class.ilECSSetting.php.
Referenced by getPort().
|
private |
Definition at line 49 of file class.ilECSSetting.php.
Referenced by getProtocol().
|
private |
Definition at line 48 of file class.ilECSSetting.php.
Referenced by getServer().
|
private |
Definition at line 44 of file class.ilECSSetting.php.
Referenced by getServerId().
|
private |
Definition at line 46 of file class.ilECSSetting.php.
Referenced by getTitle().
|
private |
Definition at line 70 of file class.ilECSSetting.php.
|
private |
Definition at line 63 of file class.ilECSSetting.php.
Referenced by getUserRecipients().
const ilECSSetting::AUTH_APACHE = 2 |
Definition at line 34 of file class.ilECSSetting.php.
Referenced by ilECSSettingsGUI\initSettingsForm(), and ilECSConnector\prepareConnection().
const ilECSSetting::AUTH_CERTIFICATE = 1 |
Definition at line 33 of file class.ilECSSetting.php.
Referenced by ilECSSettingsGUI\initSettingsForm(), and ilECSConnector\prepareConnection().
const ilECSSetting::DEFAULT_AUTH_MODE = 'ldap' |
Definition at line 26 of file class.ilECSSetting.php.
const ilECSSetting::DEFAULT_DURATION = 6 |
Definition at line 36 of file class.ilECSSetting.php.
const ilECSSetting::ERROR_CERT_EXPIRED = 'ecs_certificate_expired' |
Definition at line 31 of file class.ilECSSetting.php.
const ilECSSetting::ERROR_EXTRACT_SERIAL = 'ecs_error_extract_serial' |
Definition at line 28 of file class.ilECSSetting.php.
const ilECSSetting::ERROR_INVALID_IMPORT_ID = 'ecs_check_import_id' |
Definition at line 30 of file class.ilECSSetting.php.
const ilECSSetting::ERROR_REQUIRED = 'fill_out_all_required_fields' |
Definition at line 29 of file class.ilECSSetting.php.
const ilECSSetting::PROTOCOL_HTTP = 0 |
Definition at line 39 of file class.ilECSSetting.php.
const ilECSSetting::PROTOCOL_HTTPS = 1 |
Definition at line 40 of file class.ilECSSetting.php.
Referenced by ilECSSettingsGUI\initSettingsForm().