ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
Static Public Member Functions | |
static | getInstance (int $a_server_id, int $mid) |
Get instance by server id and mid. More... | |
Data Fields | |
const | AUTH_VERSION_4 = 1 |
const | AUTH_VERSION_5 = 2 |
const | PERSON_EPPN = 1 |
const | PERSON_LUID = 2 |
const | PERSON_LOGIN = 3 |
const | PERSON_UID = 4 |
const | LOGIN_PLACEHOLDER = '[LOGIN]' |
const | EXTERNAL_ACCOUNT_PLACEHOLDER = '[EXTERNAL_ACCOUNT]' |
const | INCOMING_AUTH_TYPE_INACTIVE = 0 |
const | INCOMING_AUTH_TYPE_LOGIN_PAGE = 1 |
const | INCOMING_AUTH_TYPE_SHIBBOLETH = 2 |
const | OUTGOING_AUTH_MODE_DEFAULT = 'default' |
const | VALIDATION_OK = 0 |
const | ERR_MISSING_USERNAME_PLACEHOLDER = 1 |
const | IMPORT_UNCHANGED = 0 |
const | IMPORT_RCRS = 1 |
const | IMPORT_CRS = 2 |
const | IMPORT_CMS = 3 |
Static Protected Attributes | |
static array | $instances = [] |
Private Member Functions | |
exists () | |
create () | |
read () | |
Read stored entry. More... | |
Private Attributes | |
int | $server_id |
int | $mid |
bool | $export = false |
bool | $import = false |
int | $import_type = 1 |
string | $title = '' |
string | $cname = '' |
bool | $token = true |
bool | $dtoken = true |
int | $auth_version = self::AUTH_VERSION_4 |
int | $person_type = self::PERSON_UID |
array | $export_types = array() |
array | $import_types = array() |
array | $username_placeholders = [] |
bool | $incoming_local_accounts = true |
int | $incoming_auth_type = self::INCOMING_AUTH_TYPE_INACTIVE |
array | $outgoing_auth_modes = [] |
bool | $exists = false |
ilDBInterface | $db |
Definition at line 24 of file class.ilECSParticipantSetting.php.
ilECSParticipantSetting::__construct | ( | int | $a_server_id, |
int | $mid | ||
) |
Definition at line 84 of file class.ilECSParticipantSetting.php.
References $DIC, $mid, and read().
ilECSParticipantSetting::areIncomingLocalAccountsSupported | ( | ) |
Definition at line 215 of file class.ilECSParticipantSetting.php.
References $incoming_local_accounts.
Referenced by create(), and update().
|
private |
Definition at line 327 of file class.ilECSParticipantSetting.php.
References areIncomingLocalAccountsSupported(), getCommunityName(), getExportTypes(), getImportType(), getImportTypes(), getIncomingAuthType(), getMid(), getOutgoingAuthModes(), getOutgoingUsernamePlaceholders(), getServerId(), getTitle(), isExportEnabled(), isImportEnabled(), isTokenEnabled(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Referenced by update().
ilECSParticipantSetting::delete | ( | ) |
Delete one participant entry.
Definition at line 355 of file class.ilECSParticipantSetting.php.
References getMid(), and getServerId().
Referenced by ilECSSettingsGUI\refreshParticipants().
ilECSParticipantSetting::enableExport | ( | bool | $a_status | ) |
Definition at line 128 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::enableImport | ( | bool | $a_status | ) |
Definition at line 138 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::enableIncomingLocalAccounts | ( | bool | $a_status | ) |
Definition at line 220 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::enableToken | ( | bool | $a_stat | ) |
Definition at line 185 of file class.ilECSParticipantSetting.php.
Referenced by read().
|
private |
Definition at line 274 of file class.ilECSParticipantSetting.php.
References $exists.
Referenced by read(), and update().
ilECSParticipantSetting::getCommunityName | ( | ) |
Definition at line 170 of file class.ilECSParticipantSetting.php.
References $cname.
Referenced by create(), and update().
ilECSParticipantSetting::getExportTypes | ( | ) |
Definition at line 195 of file class.ilECSParticipantSetting.php.
References $export_types.
Referenced by create(), and update().
ilECSParticipantSetting::getImportType | ( | ) |
Definition at line 155 of file class.ilECSParticipantSetting.php.
References $import_type.
Referenced by create(), and update().
ilECSParticipantSetting::getImportTypes | ( | ) |
Definition at line 269 of file class.ilECSParticipantSetting.php.
References $import_types.
Referenced by create(), and update().
ilECSParticipantSetting::getIncomingAuthType | ( | ) |
Definition at line 230 of file class.ilECSParticipantSetting.php.
References $incoming_auth_type.
Referenced by create(), and update().
|
static |
Get instance by server id and mid.
int | $a_server_id | |
int | $mid |
Definition at line 101 of file class.ilECSParticipantSetting.php.
References $mid.
Referenced by ilECSCmsCourseMemberCommandQueueHandler\checkAllocationActivation(), ilECSCmsCourseCommandQueueHandler\checkAllocationActivation(), ilRemoteObjectBase\getFullRemoteLink(), and ilECSAppEventListener\handleNewAccountCreation().
ilECSParticipantSetting::getMid | ( | ) |
ilECSParticipantSetting::getOutgoingAuthModes | ( | ) |
Definition at line 240 of file class.ilECSParticipantSetting.php.
References $outgoing_auth_modes.
Referenced by create(), getOutgoingExternalAuthModes(), isOutgoingAuthModeEnabled(), update(), and validate().
ilECSParticipantSetting::getOutgoingExternalAuthModes | ( | ) |
Definition at line 248 of file class.ilECSParticipantSetting.php.
References getOutgoingAuthModes().
Referenced by ilECSUser\toGET().
ilECSParticipantSetting::getOutgoingUsernamePlaceholderByAuthMode | ( | string | $auth_mode | ) |
Definition at line 210 of file class.ilECSParticipantSetting.php.
References getOutgoingUsernamePlaceholders().
Referenced by ilECSUser\toGET(), and validate().
ilECSParticipantSetting::getOutgoingUsernamePlaceholders | ( | ) |
Definition at line 200 of file class.ilECSParticipantSetting.php.
References $username_placeholders.
Referenced by create(), getOutgoingUsernamePlaceholderByAuthMode(), and update().
ilECSParticipantSetting::getServerId | ( | ) |
Get server id.
Definition at line 113 of file class.ilECSParticipantSetting.php.
References $server_id.
Referenced by create(), delete(), read(), and update().
ilECSParticipantSetting::getTitle | ( | ) |
Definition at line 165 of file class.ilECSParticipantSetting.php.
References $title.
Referenced by create(), and update().
ilECSParticipantSetting::isExportEnabled | ( | ) |
Definition at line 133 of file class.ilECSParticipantSetting.php.
References $export.
Referenced by create(), and update().
ilECSParticipantSetting::isImportEnabled | ( | ) |
Definition at line 143 of file class.ilECSParticipantSetting.php.
References $import.
Referenced by create(), and update().
ilECSParticipantSetting::isOutgoingAuthModeEnabled | ( | string | $auth_mode | ) |
Definition at line 258 of file class.ilECSParticipantSetting.php.
References getOutgoingAuthModes().
ilECSParticipantSetting::isTokenEnabled | ( | ) |
Definition at line 180 of file class.ilECSParticipantSetting.php.
References $token.
Referenced by create(), and update().
|
private |
Read stored entry.
Definition at line 367 of file class.ilECSParticipantSetting.php.
References $res, enableExport(), enableImport(), enableIncomingLocalAccounts(), enableToken(), exists(), ilDBConstants\FETCHMODE_OBJECT, getMid(), getServerId(), setCommunityName(), setExportTypes(), setImportType(), setImportTypes(), setIncomingAuthType(), setOutgoingAuthModes(), setOutgoingUsernamePlaceholders(), and setTitle().
Referenced by __construct().
ilECSParticipantSetting::setCommunityName | ( | string | $a_name | ) |
Definition at line 175 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::setExportTypes | ( | array | $a_types | ) |
Definition at line 190 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::setImportType | ( | int | $a_type | ) |
Definition at line 148 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::setImportTypes | ( | array | $a_types | ) |
Definition at line 264 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::setIncomingAuthType | ( | int | $incoming_auth_type | ) |
Definition at line 225 of file class.ilECSParticipantSetting.php.
References $incoming_auth_type.
Referenced by read().
ilECSParticipantSetting::setMid | ( | int | $a_mid | ) |
Definition at line 118 of file class.ilECSParticipantSetting.php.
ilECSParticipantSetting::setOutgoingAuthModes | ( | array | $auth_modes | ) |
Definition at line 235 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::setOutgoingUsernamePlaceholders | ( | array | $a_username_placeholders | ) |
Definition at line 205 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::setTitle | ( | string | $a_title | ) |
Definition at line 160 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::update | ( | ) |
Update Calls create automatically when no entry exists.
Definition at line 300 of file class.ilECSParticipantSetting.php.
References areIncomingLocalAccountsSupported(), create(), exists(), getCommunityName(), getExportTypes(), getImportType(), getImportTypes(), getIncomingAuthType(), getMid(), getOutgoingAuthModes(), getOutgoingUsernamePlaceholders(), getServerId(), getTitle(), isExportEnabled(), isImportEnabled(), isTokenEnabled(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
ilECSParticipantSetting::validate | ( | ) |
Definition at line 279 of file class.ilECSParticipantSetting.php.
References getOutgoingAuthModes(), and getOutgoingUsernamePlaceholderByAuthMode().
|
private |
Definition at line 66 of file class.ilECSParticipantSetting.php.
|
private |
Definition at line 62 of file class.ilECSParticipantSetting.php.
Referenced by getCommunityName().
|
private |
Definition at line 82 of file class.ilECSParticipantSetting.php.
|
private |
Definition at line 64 of file class.ilECSParticipantSetting.php.
|
private |
Definition at line 80 of file class.ilECSParticipantSetting.php.
Referenced by exists().
|
private |
Definition at line 58 of file class.ilECSParticipantSetting.php.
Referenced by isExportEnabled().
|
private |
Definition at line 70 of file class.ilECSParticipantSetting.php.
Referenced by getExportTypes().
|
private |
Definition at line 59 of file class.ilECSParticipantSetting.php.
Referenced by isImportEnabled().
|
private |
Definition at line 60 of file class.ilECSParticipantSetting.php.
Referenced by getImportType().
|
private |
Definition at line 71 of file class.ilECSParticipantSetting.php.
Referenced by getImportTypes().
|
private |
Definition at line 74 of file class.ilECSParticipantSetting.php.
Referenced by getIncomingAuthType(), and setIncomingAuthType().
|
private |
Definition at line 73 of file class.ilECSParticipantSetting.php.
Referenced by areIncomingLocalAccountsSupported().
|
staticprotected |
Definition at line 47 of file class.ilECSParticipantSetting.php.
|
private |
Definition at line 57 of file class.ilECSParticipantSetting.php.
Referenced by __construct(), getInstance(), and getMid().
|
private |
Definition at line 78 of file class.ilECSParticipantSetting.php.
Referenced by getOutgoingAuthModes().
|
private |
Definition at line 67 of file class.ilECSParticipantSetting.php.
|
private |
Definition at line 56 of file class.ilECSParticipantSetting.php.
Referenced by getServerId().
|
private |
Definition at line 61 of file class.ilECSParticipantSetting.php.
Referenced by getTitle().
|
private |
Definition at line 63 of file class.ilECSParticipantSetting.php.
Referenced by isTokenEnabled().
|
private |
Definition at line 72 of file class.ilECSParticipantSetting.php.
Referenced by getOutgoingUsernamePlaceholders().
const ilECSParticipantSetting::AUTH_VERSION_4 = 1 |
Definition at line 26 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::AUTH_VERSION_5 = 2 |
Definition at line 27 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::ERR_MISSING_USERNAME_PLACEHOLDER = 1 |
Definition at line 44 of file class.ilECSParticipantSetting.php.
Referenced by ilECSParticipantSettingsGUI\saveSettings().
const ilECSParticipantSetting::EXTERNAL_ACCOUNT_PLACEHOLDER = '[EXTERNAL_ACCOUNT]' |
Definition at line 35 of file class.ilECSParticipantSetting.php.
Referenced by ilECSUser\toGET().
const ilECSParticipantSetting::IMPORT_CMS = 3 |
Definition at line 54 of file class.ilECSParticipantSetting.php.
Referenced by ilECSCommunityTableGUI\fillRow(), ilECSParticipantSettings\lookupCmsMid(), and ilECSSettingsGUI\validateImportTypes().
const ilECSParticipantSetting::IMPORT_CRS = 2 |
Definition at line 53 of file class.ilECSParticipantSetting.php.
Referenced by ilECSCommunityTableGUI\fillRow().
const ilECSParticipantSetting::IMPORT_RCRS = 1 |
Definition at line 52 of file class.ilECSParticipantSetting.php.
Referenced by ilECSCommunityTableGUI\fillRow().
const ilECSParticipantSetting::IMPORT_UNCHANGED = 0 |
Definition at line 51 of file class.ilECSParticipantSetting.php.
Referenced by ilECSSettingsGUI\validateImportTypes().
const ilECSParticipantSetting::INCOMING_AUTH_TYPE_INACTIVE = 0 |
Definition at line 37 of file class.ilECSParticipantSetting.php.
Referenced by ilECSParticipantSettingsGUI\initFormSettings().
const ilECSParticipantSetting::INCOMING_AUTH_TYPE_LOGIN_PAGE = 1 |
Definition at line 38 of file class.ilECSParticipantSetting.php.
Referenced by ilAuthProviderECS\handleLoginByAuthMode(), ilECSAppEventListener\handleNewAccountCreation(), and ilECSParticipantSettingsGUI\initFormSettings().
const ilECSParticipantSetting::INCOMING_AUTH_TYPE_SHIBBOLETH = 2 |
Definition at line 39 of file class.ilECSParticipantSetting.php.
Referenced by ilAuthProviderECS\handleLoginByAuthMode(), ilECSAppEventListener\handleNewAccountCreation(), and ilECSParticipantSettingsGUI\initFormSettings().
const ilECSParticipantSetting::LOGIN_PLACEHOLDER = '[LOGIN]' |
Definition at line 34 of file class.ilECSParticipantSetting.php.
Referenced by ilECSUser\toGET().
const ilECSParticipantSetting::OUTGOING_AUTH_MODE_DEFAULT = 'default' |
Definition at line 41 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::PERSON_EPPN = 1 |
Definition at line 29 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::PERSON_LOGIN = 3 |
Definition at line 31 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::PERSON_LUID = 2 |
Definition at line 30 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::PERSON_UID = 4 |
Definition at line 32 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::VALIDATION_OK = 0 |
Definition at line 43 of file class.ilECSParticipantSetting.php.