ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
setTitle ($a_title) | |
Set title. | |
getTitle () | |
Get title. | |
setAuthType ($a_auth_type) | |
Set auth type. | |
getAuthType () | |
Get auth type. | |
setAuthUser ($a_user) | |
Set apache auth user. | |
getAuthUser () | |
Get apache auth user. | |
setAuthPass ($a_pass) | |
Set Apache auth password. | |
getAuthPass () | |
Get auth password. | |
getServerId () | |
Get current server id. | |
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 | |
update () | |
Update setting. | |
delete () | |
Delete. | |
fetchCertificateExpiration () | |
Fetch validity (expired date) ilLog $ilLog. | |
__clone () | |
Overwritten clone method Reset all connection settings. |
Static Public Member Functions | |
static | _getInstance () |
singleton getInstance | |
static | getInstanceByServerId ($a_server_id) |
Get singleton instance per server. | |
static | lookupAuthMode () |
Lookup auth mode. |
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 | $instances = null |
Private Member Functions | |
__construct ($a_server_id=0) | |
Singleton contructor. | |
fetchSerialID () | |
Fetch serial ID from cert. | |
read () | |
Read settings. |
Private Attributes | |
$server_id = 0 | |
$active = false | |
$title = '' | |
$auth_type = self::AUTH_CERTIFICATE | |
$server | |
$protocol | |
$port | |
$client_cert_path | |
$ca_cert_path | |
$key_path | |
$key_password | |
$polling | |
$import_id | |
$cert_serial | |
$global_role | |
$duration | |
$auth_user = '' | |
$auth_pass = '' | |
$user_recipients = array() | |
$econtent_recipients = array() | |
$approval_recipients = array() |
Definition at line 33 of file class.ilECSSetting.php.
|
private |
Singleton contructor.
private
Definition at line 83 of file class.ilECSSetting.php.
References read().
ilECSSetting::__clone | ( | ) |
Overwritten clone method Reset all connection settings.
Definition at line 1003 of file class.ilECSSetting.php.
References getTitle(), setAuthPass(), setAuthType(), setAuthUser(), setCACertPath(), setCertSerialNumber(), setClientCertPath(), setEnabledStatus(), setKeyPassword(), setKeyPath(), setPort(), setProtocol(), setServer(), and setTitle().
|
static |
singleton getInstance
public
Definition at line 97 of file class.ilECSSetting.php.
References $GLOBALS, and getInstanceByServerId().
ilECSSetting::checkImportId | ( | ) |
check import id
public
Definition at line 747 of file class.ilECSSetting.php.
References getImportId().
Referenced by validate().
ilECSSetting::delete | ( | ) |
Delete.
Definition at line 842 of file class.ilECSSetting.php.
References $ilDB, ilECSCommunityCache\deleteByServerId(), ilECSDataMappingSetting\deleteByServerId(), ilECSNodeMappingAssignment\deleteByServerId(), ilECSParticipantSetting\deleteByServerId(), ilECSExport\deleteByServerId(), ilECSCmsData\deleteByServerId(), ilECSEventQueueReader\deleteByServerId(), getServerId(), and ilECSImport\resetServerId().
ilECSSetting::fetchCertificateExpiration | ( | ) |
Fetch validity (expired date) ilLog $ilLog.
Definition at line 888 of file class.ilECSSetting.php.
References $ilLog, ilDatePresentation\formatDate(), getAuthType(), getClientCertPath(), and IL_CAL_UNIX.
Referenced by validate().
|
private |
Fetch serial ID from cert.
private
Definition at line 915 of file class.ilECSSetting.php.
References $ilLog, getClientCertPath(), and setCertSerialNumber().
Referenced by validate().
ilECSSetting::getApprovalRecipients | ( | ) |
get approval recipients
public
Definition at line 658 of file class.ilECSSetting.php.
Referenced by ilECSObjectSettings\sendNewContentNotification().
ilECSSetting::getApprovalRecipientsAsString | ( | ) |
get approval recipients as string
public
@return |
Definition at line 670 of file class.ilECSSetting.php.
Referenced by ilECSObjectSettings\sendNewContentNotification().
ilECSSetting::getAuthPass | ( | ) |
Get auth password.
Definition at line 193 of file class.ilECSSetting.php.
References $auth_pass.
Referenced by validate().
ilECSSetting::getAuthType | ( | ) |
Get auth type.
Definition at line 157 of file class.ilECSSetting.php.
References $auth_type.
Referenced by fetchCertificateExpiration(), and validate().
ilECSSetting::getAuthUser | ( | ) |
Get apache auth user.
Definition at line 175 of file class.ilECSSetting.php.
References $auth_user.
Referenced by validate().
ilECSSetting::getCACertPath | ( | ) |
get ca cert path
public
Definition at line 442 of file class.ilECSSetting.php.
References $ca_cert_path.
Referenced by validate().
ilECSSetting::getCertSerialNumber | ( | ) |
get cert serial number
public
Definition at line 533 of file class.ilECSSetting.php.
ilECSSetting::getClientCertPath | ( | ) |
get certificate path
public
Definition at line 419 of file class.ilECSSetting.php.
References $client_cert_path.
Referenced by fetchCertificateExpiration(), fetchSerialID(), and validate().
ilECSSetting::getDuration | ( | ) |
get duration
public
Definition at line 579 of file class.ilECSSetting.php.
References DEFAULT_DURATION.
Referenced by ilECSAppEventListener\extendAccount(), and validate().
ilECSSetting::getEContentRecipients | ( | ) |
get Econtent recipients
public
Definition at line 624 of file class.ilECSSetting.php.
ilECSSetting::getEContentRecipientsAsString | ( | ) |
get EContent recipients as string
public
Definition at line 635 of file class.ilECSSetting.php.
ilECSSetting::getGlobalRole | ( | ) |
get global role
public
Definition at line 544 of file class.ilECSSetting.php.
References $global_role.
Referenced by ilECSObjectSettings\handlePermissionUpdate(), and validate().
ilECSSetting::getImportId | ( | ) |
get import id
public
Definition at line 510 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 109 of file class.ilECSSetting.php.
Referenced by ilECSMappingSettingsGUI\__construct(), ilECSEventQueueReader\__construct(), _getInstance(), ilECSTaskScheduler\_getInstanceByServerId(), ilECSObjectSettings\_handleDelete(), ilRemoteObjectBase\createAuthResource(), ilECSServerTableGUI\fillRow(), ilRemoteObjectBase\getFullRemoteLink(), ilECSEContentDetails\getInstance(), ilECSCommunityReader\getInstanceByServerId(), ilECSCategoryMapping\getMatchingCategory(), ilECSNodeMappingTreeTableGUI\getServer(), ilECSObjectSettings\handleContentUpdate(), ilECSObjectSettings\handleSettingsUpdate(), ilECSAppEventListener\initServer(), ilECSParticipantSettingsGUI\initSettings(), ilECSSettingsGUI\initSettings(), ilECSTreeReader\read(), ilECSServerSettings\readActiveServers(), ilECSServerSettings\readInactiveServers(), ilRemoteObjectBase\sendNewContentNotification(), and ilECSAppEventListener\updateEnrolmentStatus().
ilECSSetting::getKeyPassword | ( | ) |
get key password
public
Definition at line 476 of file class.ilECSSetting.php.
References $key_password.
Referenced by validate().
ilECSSetting::getKeyPath | ( | ) |
get key path
public
Definition at line 453 of file class.ilECSSetting.php.
References $key_path.
Referenced by validate().
ilECSSetting::getPollingTime | ( | ) |
get polling time
public
Definition at line 362 of file class.ilECSSetting.php.
References $polling.
Referenced by validate().
ilECSSetting::getPollingTimeMinutes | ( | ) |
get polling time minutes
public
Definition at line 384 of file class.ilECSSetting.php.
ilECSSetting::getPollingTimeSeconds | ( | ) |
get polling time seconds (<60)
public
Definition at line 373 of file class.ilECSSetting.php.
ilECSSetting::getPort | ( | ) |
get port
public
Definition at line 339 of file class.ilECSSetting.php.
References $port.
Referenced by validate().
ilECSSetting::getProtocol | ( | ) |
get protocol
public
Definition at line 315 of file class.ilECSSetting.php.
References $protocol.
Referenced by getServerURI().
ilECSSetting::getServer | ( | ) |
get server
public
Definition at line 249 of file class.ilECSSetting.php.
References $server.
Referenced by getServerURI(), and validate().
ilECSSetting::getServerId | ( | ) |
Get current server id.
Definition at line 202 of file class.ilECSSetting.php.
References $server_id.
Referenced by ilECSCommunityTableGUI\__construct(), ilECSAppEventListener\_sendNotification(), ilECSObjectSettings\addMetadataToJson(), ilRemoteObjectBase\createFromECSEContent(), delete(), ilECSObjectSettings\doUpdate(), ilECSCmsTreeCommandQueueHandler\handleCreate(), ilRemoteObjectBase\handleDelete(), ilECSEventQueueReader\handleExportReset(), ilECSEventQueueReader\handleImportReset(), ilECSObjectSettings\handleSettingsForServer(), ilECSCmsTreeCommandQueueHandler\handleUpdate(), ilRemoteObjectBase\handleUpdate(), ilRemoteObjectBase\importMetadataFromJson(), read(), ilECSObjectSettings\sendNewContentNotification(), ilObjRemoteCourse\updateCustomFromECSContent(), and ilRemoteObjectBase\updateFromECSContent().
ilECSSetting::getServerURI | ( | ) |
get complete server uri
public
Definition at line 260 of file class.ilECSSetting.php.
References getProtocol(), and getServer().
ilECSSetting::getTitle | ( | ) |
Get title.
Definition at line 139 of file class.ilECSSetting.php.
References $title.
Referenced by __clone().
ilECSSetting::getUserRecipients | ( | ) |
Get new user recipients.
public
Definition at line 590 of file class.ilECSSetting.php.
Referenced by ilECSAppEventListener\_sendNotification().
ilECSSetting::getUserRecipientsAsString | ( | ) |
Get new user recipients.
public
Definition at line 601 of file class.ilECSSetting.php.
Referenced by ilECSAppEventListener\_sendNotification().
ilECSSetting::isEnabled | ( | ) |
is enabled
public
Definition at line 225 of file class.ilECSSetting.php.
References $active.
Referenced by validate().
|
static |
Lookup auth mode.
Definition at line 121 of file class.ilECSSetting.php.
References DEFAULT_AUTH_MODE.
Referenced by ilECSAppEventListener\handleMembership(), and ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus().
|
private |
Read settings.
private
Definition at line 962 of file class.ilECSSetting.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_ASSOC, getServerId(), setAuthPass(), setAuthType(), setAuthUser(), setCACertPath(), setCertSerialNumber(), setClientCertPath(), setDuration(), setEnabledStatus(), setGlobalRole(), setImportId(), setKeyPassword(), setKeyPath(), setPollingTime(), setPort(), setProtocol(), setServer(), and setTitle().
Referenced by __construct().
ilECSSetting::save | ( | ) |
save settings
public
Definition at line 772 of file class.ilECSSetting.php.
References $ilDB.
ilECSSetting::setApprovalRecipients | ( | $a_rcp | ) |
set approval recipients
public
string | recipients |
Definition at line 681 of file class.ilECSSetting.php.
ilECSSetting::setAuthPass | ( | $a_pass | ) |
Set Apache auth password.
string | $a_pass |
Definition at line 184 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setAuthType | ( | $a_auth_type | ) |
Set auth type.
int | $a_auth_type |
Definition at line 148 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setAuthUser | ( | $a_user | ) |
Set apache auth user.
string | $a_user |
Definition at line 166 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setCACertPath | ( | $a_ca | ) |
set ca cert path
public
string | ca cert path |
Definition at line 431 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setCertSerialNumber | ( | $a_cert_serial | ) |
set cert serial number
public
Definition at line 522 of file class.ilECSSetting.php.
Referenced by __clone(), fetchSerialID(), and read().
ilECSSetting::setClientCertPath | ( | $a_path | ) |
set
public
Definition at line 409 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setDuration | ( | $a_duration | ) |
set Duration
public
int | duration |
Definition at line 568 of file class.ilECSSetting.php.
Referenced by read().
ilECSSetting::setEContentRecipients | ( | $a_logins | ) |
set EContent recipients
public
array | of user obj_ids |
Definition at line 647 of file class.ilECSSetting.php.
ilECSSetting::setEnabledStatus | ( | $a_status | ) |
en/disable ecs functionality
public
bool | status |
Definition at line 214 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setGlobalRole | ( | $a_role_id | ) |
set default global role
public
int | role_id |
Definition at line 556 of file class.ilECSSetting.php.
Referenced by read().
ilECSSetting::setImportId | ( | $a_id | ) |
set import id Object of category, that store new remote courses
public
Definition at line 500 of file class.ilECSSetting.php.
Referenced by read().
ilECSSetting::setKeyPassword | ( | $a_pass | ) |
set key password
public
string | key password |
Definition at line 488 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setKeyPath | ( | $a_path | ) |
set key path
public
string | key path |
Definition at line 465 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setPollingTime | ( | $a_time | ) |
set polling time
public
int | polling time |
Definition at line 351 of file class.ilECSSetting.php.
Referenced by read(), and setPollingTimeMS().
ilECSSetting::setPollingTimeMS | ( | $a_min, | |
$a_sec | |||
) |
Set polling time.
public
int | minutes |
int | seconds |
Definition at line 397 of file class.ilECSSetting.php.
References setPollingTime().
ilECSSetting::setPort | ( | $a_port | ) |
set port
public
int | port |
Definition at line 327 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setProtocol | ( | $a_prot | ) |
set protocol
public
Definition at line 304 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setServer | ( | $a_server | ) |
set server
public
Definition at line 237 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setTitle | ( | $a_title | ) |
Set title.
string | $a_title |
Definition at line 130 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
ilECSSetting::setUserRecipients | ( | $a_logins | ) |
set user recipients
public
array | of recipients (array of user login names) |
Definition at line 613 of file class.ilECSSetting.php.
ilECSSetting::update | ( | ) |
Update setting.
Definition at line 808 of file class.ilECSSetting.php.
References $ilDB.
ilECSSetting::validate | ( | ) |
Validate settings.
public
void |
Definition at line 694 of file class.ilECSSetting.php.
References AUTH_APACHE, checkImportId(), ERROR_CERT_EXPIRED, ERROR_EXTRACT_SERIAL, ERROR_INVALID_IMPORT_ID, ERROR_REQUIRED, fetchCertificateExpiration(), fetchSerialID(), getAuthPass(), getAuthType(), getAuthUser(), getCACertPath(), getClientCertPath(), getDuration(), getGlobalRole(), getImportId(), getKeyPassword(), getKeyPath(), getPollingTime(), getPort(), getServer(), and isEnabled().
|
private |
Definition at line 55 of file class.ilECSSetting.php.
Referenced by isEnabled().
|
private |
Definition at line 76 of file class.ilECSSetting.php.
|
private |
Definition at line 72 of file class.ilECSSetting.php.
Referenced by getAuthPass().
|
private |
Definition at line 57 of file class.ilECSSetting.php.
Referenced by getAuthType().
|
private |
Definition at line 71 of file class.ilECSSetting.php.
Referenced by getAuthUser().
|
private |
Definition at line 62 of file class.ilECSSetting.php.
Referenced by getCACertPath().
|
private |
Definition at line 67 of file class.ilECSSetting.php.
|
private |
Definition at line 61 of file class.ilECSSetting.php.
Referenced by getClientCertPath().
|
private |
Definition at line 69 of file class.ilECSSetting.php.
|
private |
Definition at line 75 of file class.ilECSSetting.php.
|
private |
Definition at line 68 of file class.ilECSSetting.php.
Referenced by getGlobalRole().
|
private |
Definition at line 66 of file class.ilECSSetting.php.
Referenced by getImportId().
|
staticprotected |
Definition at line 51 of file class.ilECSSetting.php.
|
private |
Definition at line 64 of file class.ilECSSetting.php.
Referenced by getKeyPassword().
|
private |
Definition at line 63 of file class.ilECSSetting.php.
Referenced by getKeyPath().
|
private |
Definition at line 65 of file class.ilECSSetting.php.
Referenced by getPollingTime().
|
private |
Definition at line 60 of file class.ilECSSetting.php.
Referenced by getPort().
|
private |
Definition at line 59 of file class.ilECSSetting.php.
Referenced by getProtocol().
|
private |
Definition at line 58 of file class.ilECSSetting.php.
Referenced by getServer().
|
private |
Definition at line 54 of file class.ilECSSetting.php.
Referenced by getServerId().
|
private |
Definition at line 56 of file class.ilECSSetting.php.
Referenced by getTitle().
|
private |
Definition at line 74 of file class.ilECSSetting.php.
const ilECSSetting::AUTH_APACHE = 2 |
Definition at line 43 of file class.ilECSSetting.php.
Referenced by ilECSConnector\prepareConnection().
const ilECSSetting::AUTH_CERTIFICATE = 1 |
Definition at line 42 of file class.ilECSSetting.php.
Referenced by ilECSSettingsGUI\initSettingsForm(), and ilECSConnector\prepareConnection().
const ilECSSetting::DEFAULT_AUTH_MODE = 'ldap' |
Definition at line 35 of file class.ilECSSetting.php.
Referenced by lookupAuthMode().
const ilECSSetting::DEFAULT_DURATION = 6 |
Definition at line 45 of file class.ilECSSetting.php.
Referenced by getDuration().
const ilECSSetting::ERROR_CERT_EXPIRED = 'ecs_certificate_expired' |
Definition at line 40 of file class.ilECSSetting.php.
Referenced by validate().
const ilECSSetting::ERROR_EXTRACT_SERIAL = 'ecs_error_extract_serial' |
Definition at line 37 of file class.ilECSSetting.php.
Referenced by validate().
const ilECSSetting::ERROR_INVALID_IMPORT_ID = 'ecs_check_import_id' |
Definition at line 39 of file class.ilECSSetting.php.
Referenced by validate().
const ilECSSetting::ERROR_REQUIRED = 'fill_out_all_required_fields' |
Definition at line 38 of file class.ilECSSetting.php.
Referenced by validate().
const ilECSSetting::PROTOCOL_HTTP = 0 |
Definition at line 48 of file class.ilECSSetting.php.
const ilECSSetting::PROTOCOL_HTTPS = 1 |
Definition at line 49 of file class.ilECSSetting.php.
Referenced by ilECSSettingsGUI\initSettingsForm().