|
ILIAS
Release_4_2_x_branch Revision 61807
|
Collaboration diagram for ilECSSetting: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. | |
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 | 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 81 of file class.ilECSSetting.php.
References read().
Here is the call graph for this function:| ilECSSetting::__clone | ( | ) |
Overwritten clone method Reset all connection settings.
Definition at line 964 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:
|
static |
singleton getInstance
public
Definition at line 95 of file class.ilECSSetting.php.
References $GLOBALS, and getInstanceByServerId().
Referenced by ilECSAppEventListener\_sendNotification(), and ilECSAppEventListener\handleEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSSetting::checkImportId | ( | ) |
check import id
public
Definition at line 737 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 832 of file class.ilECSSetting.php.
References $ilDB.
| ilECSSetting::fetchCertificateExpiration | ( | ) |
Fetch validity (expired date) ilLog $ilLog.
Definition at line 849 of file class.ilECSSetting.php.
References $ilLog, 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.
private
Definition at line 876 of file class.ilECSSetting.php.
References $ilLog, 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
public
Definition at line 648 of file class.ilECSSetting.php.
| ilECSSetting::getApprovalRecipientsAsString | ( | ) |
get approval recipients as string
public
| @return |
Definition at line 660 of file class.ilECSSetting.php.
| ilECSSetting::getAuthPass | ( | ) |
Get auth password.
Definition at line 183 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 147 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 165 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
public
Definition at line 432 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
public
Definition at line 523 of file class.ilECSSetting.php.
| ilECSSetting::getClientCertPath | ( | ) |
get certificate path
public
Definition at line 409 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
public
Definition at line 569 of file class.ilECSSetting.php.
References DEFAULT_DURATION.
Referenced by validate().
Here is the caller graph for this function:| ilECSSetting::getEContentRecipients | ( | ) |
get Econtent recipients
public
Definition at line 614 of file class.ilECSSetting.php.
| ilECSSetting::getEContentRecipientsAsString | ( | ) |
get EContent recipients as string
public
Definition at line 625 of file class.ilECSSetting.php.
| ilECSSetting::getGlobalRole | ( | ) |
get global role
public
Definition at line 534 of file class.ilECSSetting.php.
References $global_role.
Referenced by validate().
Here is the caller graph for this function:| ilECSSetting::getImportId | ( | ) |
get import id
public
Definition at line 500 of file class.ilECSSetting.php.
References $import_id.
Referenced by checkImportId(), and validate().
Here is the caller graph for this function:
|
static |
Get singleton instance per server.
| int | $a_server_id |
Definition at line 107 of file class.ilECSSetting.php.
Referenced by ilECSMappingSettingsGUI\__construct(), ilECSEventQueueReader\__construct(), ilECSEContentReader\__construct(), ilObjRemoteCourse\_createFromECSEContent(), _getInstance(), ilECSTaskScheduler\_getInstanceByServerId(), ilECSContentWriter\addECSContent(), ilObjRemoteCourse\createAuthResource(), ilECSContentWriter\deleteECSContent(), ilECSServerTableGUI\fillRow(), ilECSCommunityReader\getInstanceByServerId(), ilECSCategoryMapping\getMatchingCategory(), ilECSAppEventListener\handleEvent(), ilECSSettingsGUI\initSettings(), ilECSServerSettings\readActiveServers(), ilECSServerSettings\readInactiveServers(), ilECSContentWriter\sendNewContentNotification(), ilECSContentWriter\updateECSContent(), and ilObjCourse\updateECSContent().
Here is the caller graph for this function:| ilECSSetting::getKeyPassword | ( | ) |
get key password
public
Definition at line 466 of file class.ilECSSetting.php.
References $key_password.
Referenced by validate().
Here is the caller graph for this function:| ilECSSetting::getKeyPath | ( | ) |
get key path
public
Definition at line 443 of file class.ilECSSetting.php.
References $key_path.
Referenced by validate().
Here is the caller graph for this function:| ilECSSetting::getPollingTime | ( | ) |
get polling time
public
Definition at line 352 of file class.ilECSSetting.php.
References $polling.
Referenced by validate().
Here is the caller graph for this function:| ilECSSetting::getPollingTimeMinutes | ( | ) |
get polling time minutes
public
Definition at line 374 of file class.ilECSSetting.php.
| ilECSSetting::getPollingTimeSeconds | ( | ) |
get polling time seconds (<60)
public
Definition at line 363 of file class.ilECSSetting.php.
| ilECSSetting::getPort | ( | ) |
get port
public
Definition at line 329 of file class.ilECSSetting.php.
References $port.
Referenced by validate().
Here is the caller graph for this function:| ilECSSetting::getProtocol | ( | ) |
get protocol
public
Definition at line 305 of file class.ilECSSetting.php.
References $protocol.
Referenced by getServerURI().
Here is the caller graph for this function:| ilECSSetting::getServer | ( | ) |
get server
public
Definition at line 239 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 192 of file class.ilECSSetting.php.
References $server_id.
Referenced by ilECSCommunityTableGUI\__construct(), ilECSEventQueueReader\handleExportReset(), ilECSEventQueueReader\handleImportReset(), and read().
Here is the caller graph for this function:| ilECSSetting::getServerURI | ( | ) |
get complete server uri
public
Definition at line 250 of file class.ilECSSetting.php.
References getProtocol(), and getServer().
Here is the call graph for this function:| ilECSSetting::getTitle | ( | ) |
Get title.
Definition at line 129 of file class.ilECSSetting.php.
References $title.
Referenced by __clone().
Here is the caller graph for this function:| ilECSSetting::getUserRecipients | ( | ) |
Get new user recipients.
public
Definition at line 580 of file class.ilECSSetting.php.
| ilECSSetting::getUserRecipientsAsString | ( | ) |
Get new user recipients.
public
Definition at line 591 of file class.ilECSSetting.php.
| ilECSSetting::isEnabled | ( | ) |
is enabled
public
Definition at line 215 of file class.ilECSSetting.php.
References $active.
Referenced by validate().
Here is the caller graph for this function:
|
private |
Read settings.
private
Definition at line 923 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSSetting::save | ( | ) |
save settings
public
Definition at line 762 of file class.ilECSSetting.php.
References $ilDB.
| ilECSSetting::setApprovalRecipients | ( | $a_rcp | ) |
set approval recipients
public
| string | recipients |
Definition at line 671 of file class.ilECSSetting.php.
| ilECSSetting::setAuthPass | ( | $a_pass | ) |
Set Apache auth password.
| string | $a_pass |
Definition at line 174 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.
| int | $a_auth_type |
Definition at line 138 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.
| string | $a_user |
Definition at line 156 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setCACertPath | ( | $a_ca | ) |
set ca cert path
public
| string | ca cert path |
Definition at line 421 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setCertSerialNumber | ( | $a_cert_serial | ) |
set cert serial number
public
Definition at line 512 of file class.ilECSSetting.php.
Referenced by __clone(), fetchSerialID(), and read().
Here is the caller graph for this function:| ilECSSetting::setClientCertPath | ( | $a_path | ) |
set
public
Definition at line 399 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setDuration | ( | $a_duration | ) |
set Duration
public
| int | duration |
Definition at line 558 of file class.ilECSSetting.php.
Referenced by read().
Here is the caller graph for this function:| ilECSSetting::setEContentRecipients | ( | $a_logins | ) |
set EContent recipients
public
| array | of user obj_ids |
Definition at line 637 of file class.ilECSSetting.php.
| ilECSSetting::setEnabledStatus | ( | $a_status | ) |
en/disable ecs functionality
public
| bool | status |
Definition at line 204 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setGlobalRole | ( | $a_role_id | ) |
set default global role
public
| int | role_id |
Definition at line 546 of file class.ilECSSetting.php.
Referenced by read().
Here is the caller graph for this function:| ilECSSetting::setImportId | ( | $a_id | ) |
set import id Object of category, that store new remote courses
public
Definition at line 490 of file class.ilECSSetting.php.
Referenced by read().
Here is the caller graph for this function:| ilECSSetting::setKeyPassword | ( | $a_pass | ) |
set key password
public
| string | key password |
Definition at line 478 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setKeyPath | ( | $a_path | ) |
set key path
public
| string | key path |
Definition at line 455 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setPollingTime | ( | $a_time | ) |
set polling time
public
| int | polling time |
Definition at line 341 of file class.ilECSSetting.php.
Referenced by read(), and setPollingTimeMS().
Here is the caller graph for this function:| ilECSSetting::setPollingTimeMS | ( | $a_min, | |
| $a_sec | |||
| ) |
Set polling time.
public
| int | minutes |
| int | seconds |
Definition at line 387 of file class.ilECSSetting.php.
References setPollingTime().
Here is the call graph for this function:| ilECSSetting::setPort | ( | $a_port | ) |
set port
public
| int | port |
Definition at line 317 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setProtocol | ( | $a_prot | ) |
set protocol
public
Definition at line 294 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setServer | ( | $a_server | ) |
set server
public
Definition at line 227 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setTitle | ( | $a_title | ) |
Set title.
| string | $a_title |
Definition at line 120 of file class.ilECSSetting.php.
Referenced by __clone(), and read().
Here is the caller graph for this function:| ilECSSetting::setUserRecipients | ( | $a_logins | ) |
set user recipients
public
| array | of recipients (array of user login names) |
Definition at line 603 of file class.ilECSSetting.php.
| ilECSSetting::update | ( | ) |
Update setting.
Definition at line 798 of file class.ilECSSetting.php.
References $ilDB.
| ilECSSetting::validate | ( | ) |
Validate settings.
public
| void |
Definition at line 684 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().
Here is the call graph for this function:
|
private |
Definition at line 53 of file class.ilECSSetting.php.
Referenced by isEnabled().
|
private |
Definition at line 74 of file class.ilECSSetting.php.
|
private |
Definition at line 70 of file class.ilECSSetting.php.
Referenced by getAuthPass().
|
private |
Definition at line 55 of file class.ilECSSetting.php.
Referenced by getAuthType().
|
private |
Definition at line 69 of file class.ilECSSetting.php.
Referenced by getAuthUser().
|
private |
Definition at line 60 of file class.ilECSSetting.php.
Referenced by getCACertPath().
|
private |
Definition at line 65 of file class.ilECSSetting.php.
|
private |
Definition at line 59 of file class.ilECSSetting.php.
Referenced by getClientCertPath().
|
private |
Definition at line 67 of file class.ilECSSetting.php.
|
private |
Definition at line 73 of file class.ilECSSetting.php.
|
private |
Definition at line 66 of file class.ilECSSetting.php.
Referenced by getGlobalRole().
|
private |
Definition at line 64 of file class.ilECSSetting.php.
Referenced by getImportId().
|
staticprotected |
Definition at line 49 of file class.ilECSSetting.php.
|
private |
Definition at line 62 of file class.ilECSSetting.php.
Referenced by getKeyPassword().
|
private |
Definition at line 61 of file class.ilECSSetting.php.
Referenced by getKeyPath().
|
private |
Definition at line 63 of file class.ilECSSetting.php.
Referenced by getPollingTime().
|
private |
Definition at line 58 of file class.ilECSSetting.php.
Referenced by getPort().
|
private |
Definition at line 57 of file class.ilECSSetting.php.
Referenced by getProtocol().
|
private |
Definition at line 56 of file class.ilECSSetting.php.
Referenced by getServer().
|
private |
Definition at line 52 of file class.ilECSSetting.php.
Referenced by getServerId().
|
private |
Definition at line 54 of file class.ilECSSetting.php.
Referenced by getTitle().
|
private |
Definition at line 72 of file class.ilECSSetting.php.
| const ilECSSetting::AUTH_APACHE = 2 |
Definition at line 41 of file class.ilECSSetting.php.
Referenced by ilECSConnector\prepareConnection().
| const ilECSSetting::AUTH_CERTIFICATE = 1 |
Definition at line 40 of file class.ilECSSetting.php.
Referenced by ilECSSettingsGUI\initSettingsForm(), and ilECSConnector\prepareConnection().
| const ilECSSetting::DEFAULT_DURATION = 6 |
Definition at line 43 of file class.ilECSSetting.php.
Referenced by getDuration().
| const ilECSSetting::ERROR_CERT_EXPIRED = 'ecs_certificate_expired' |
Definition at line 38 of file class.ilECSSetting.php.
Referenced by validate().
| const ilECSSetting::ERROR_EXTRACT_SERIAL = 'ecs_error_extract_serial' |
Definition at line 35 of file class.ilECSSetting.php.
Referenced by validate().
| const ilECSSetting::ERROR_INVALID_IMPORT_ID = 'ecs_check_import_id' |
Definition at line 37 of file class.ilECSSetting.php.
Referenced by validate().
| const ilECSSetting::ERROR_REQUIRED = 'fill_out_all_required_fields' |
Definition at line 36 of file class.ilECSSetting.php.
Referenced by validate().
| const ilECSSetting::PROTOCOL_HTTP = 0 |
Definition at line 46 of file class.ilECSSetting.php.
| const ilECSSetting::PROTOCOL_HTTPS = 1 |
Definition at line 47 of file class.ilECSSetting.php.
Referenced by ilECSSettingsGUI\initSettingsForm().