ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
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 23 of file class.ilECSParticipantSetting.php.
ilECSParticipantSetting::__construct | ( | int | $a_server_id, |
int | $mid | ||
) |
Definition at line 83 of file class.ilECSParticipantSetting.php.
References $DIC, $mid, and read().
ilECSParticipantSetting::areIncomingLocalAccountsSupported | ( | ) |
Definition at line 214 of file class.ilECSParticipantSetting.php.
References $incoming_local_accounts.
Referenced by create(), and update().
|
private |
Definition at line 326 of file class.ilECSParticipantSetting.php.
References $query, 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 354 of file class.ilECSParticipantSetting.php.
References $query, getMid(), and getServerId().
Referenced by ilECSSettingsGUI\refreshParticipants().
ilECSParticipantSetting::enableExport | ( | bool | $a_status | ) |
Definition at line 127 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::enableImport | ( | bool | $a_status | ) |
Definition at line 137 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::enableIncomingLocalAccounts | ( | bool | $a_status | ) |
Definition at line 219 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::enableToken | ( | bool | $a_stat | ) |
Definition at line 184 of file class.ilECSParticipantSetting.php.
Referenced by read().
|
private |
Definition at line 273 of file class.ilECSParticipantSetting.php.
References $exists.
Referenced by read(), and update().
ilECSParticipantSetting::getCommunityName | ( | ) |
Definition at line 169 of file class.ilECSParticipantSetting.php.
References $cname.
Referenced by create(), and update().
ilECSParticipantSetting::getExportTypes | ( | ) |
Definition at line 194 of file class.ilECSParticipantSetting.php.
References $export_types.
Referenced by create(), and update().
ilECSParticipantSetting::getImportType | ( | ) |
Definition at line 154 of file class.ilECSParticipantSetting.php.
References $import_type.
Referenced by create(), and update().
ilECSParticipantSetting::getImportTypes | ( | ) |
Definition at line 268 of file class.ilECSParticipantSetting.php.
References $import_types.
Referenced by create(), and update().
ilECSParticipantSetting::getIncomingAuthType | ( | ) |
Definition at line 229 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 100 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 239 of file class.ilECSParticipantSetting.php.
References $outgoing_auth_modes.
Referenced by create(), getOutgoingExternalAuthModes(), isOutgoingAuthModeEnabled(), update(), and validate().
ilECSParticipantSetting::getOutgoingExternalAuthModes | ( | ) |
Definition at line 247 of file class.ilECSParticipantSetting.php.
References getOutgoingAuthModes().
Referenced by ilECSUser\toGET().
ilECSParticipantSetting::getOutgoingUsernamePlaceholderByAuthMode | ( | string | $auth_mode | ) |
Definition at line 209 of file class.ilECSParticipantSetting.php.
References getOutgoingUsernamePlaceholders().
Referenced by ilECSUser\toGET(), and validate().
ilECSParticipantSetting::getOutgoingUsernamePlaceholders | ( | ) |
Definition at line 199 of file class.ilECSParticipantSetting.php.
References $username_placeholders.
Referenced by create(), getOutgoingUsernamePlaceholderByAuthMode(), and update().
ilECSParticipantSetting::getServerId | ( | ) |
Get server id.
Definition at line 112 of file class.ilECSParticipantSetting.php.
References $server_id.
Referenced by create(), delete(), read(), and update().
ilECSParticipantSetting::getTitle | ( | ) |
Definition at line 164 of file class.ilECSParticipantSetting.php.
References $title.
Referenced by create(), and update().
ilECSParticipantSetting::isExportEnabled | ( | ) |
Definition at line 132 of file class.ilECSParticipantSetting.php.
References $export.
Referenced by create(), and update().
ilECSParticipantSetting::isImportEnabled | ( | ) |
Definition at line 142 of file class.ilECSParticipantSetting.php.
References $import.
Referenced by create(), and update().
ilECSParticipantSetting::isOutgoingAuthModeEnabled | ( | string | $auth_mode | ) |
Definition at line 257 of file class.ilECSParticipantSetting.php.
References getOutgoingAuthModes().
ilECSParticipantSetting::isTokenEnabled | ( | ) |
Definition at line 179 of file class.ilECSParticipantSetting.php.
References $token.
Referenced by create(), and update().
|
private |
Read stored entry.
Definition at line 366 of file class.ilECSParticipantSetting.php.
References $query, $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 174 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::setExportTypes | ( | array | $a_types | ) |
Definition at line 189 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::setImportType | ( | int | $a_type | ) |
Definition at line 147 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::setImportTypes | ( | array | $a_types | ) |
Definition at line 263 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::setIncomingAuthType | ( | int | $incoming_auth_type | ) |
Definition at line 224 of file class.ilECSParticipantSetting.php.
References $incoming_auth_type.
Referenced by read().
ilECSParticipantSetting::setMid | ( | int | $a_mid | ) |
Definition at line 117 of file class.ilECSParticipantSetting.php.
ilECSParticipantSetting::setOutgoingAuthModes | ( | array | $auth_modes | ) |
Definition at line 234 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::setOutgoingUsernamePlaceholders | ( | array | $a_username_placeholders | ) |
Definition at line 204 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::setTitle | ( | string | $a_title | ) |
Definition at line 159 of file class.ilECSParticipantSetting.php.
Referenced by read().
ilECSParticipantSetting::update | ( | ) |
Update Calls create automatically when no entry exists.
Definition at line 299 of file class.ilECSParticipantSetting.php.
References $query, 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 278 of file class.ilECSParticipantSetting.php.
References getOutgoingAuthModes(), and getOutgoingUsernamePlaceholderByAuthMode().
|
private |
Definition at line 65 of file class.ilECSParticipantSetting.php.
|
private |
Definition at line 61 of file class.ilECSParticipantSetting.php.
Referenced by getCommunityName().
|
private |
Definition at line 81 of file class.ilECSParticipantSetting.php.
|
private |
Definition at line 63 of file class.ilECSParticipantSetting.php.
|
private |
Definition at line 79 of file class.ilECSParticipantSetting.php.
Referenced by exists().
|
private |
Definition at line 57 of file class.ilECSParticipantSetting.php.
Referenced by isExportEnabled().
|
private |
Definition at line 69 of file class.ilECSParticipantSetting.php.
Referenced by getExportTypes().
|
private |
Definition at line 58 of file class.ilECSParticipantSetting.php.
Referenced by isImportEnabled().
|
private |
Definition at line 59 of file class.ilECSParticipantSetting.php.
Referenced by getImportType().
|
private |
Definition at line 70 of file class.ilECSParticipantSetting.php.
Referenced by getImportTypes().
|
private |
Definition at line 73 of file class.ilECSParticipantSetting.php.
Referenced by getIncomingAuthType(), and setIncomingAuthType().
|
private |
Definition at line 72 of file class.ilECSParticipantSetting.php.
Referenced by areIncomingLocalAccountsSupported().
|
staticprotected |
Definition at line 46 of file class.ilECSParticipantSetting.php.
|
private |
Definition at line 56 of file class.ilECSParticipantSetting.php.
Referenced by __construct(), getInstance(), and getMid().
|
private |
Definition at line 77 of file class.ilECSParticipantSetting.php.
Referenced by getOutgoingAuthModes().
|
private |
Definition at line 66 of file class.ilECSParticipantSetting.php.
|
private |
Definition at line 55 of file class.ilECSParticipantSetting.php.
Referenced by getServerId().
|
private |
Definition at line 60 of file class.ilECSParticipantSetting.php.
Referenced by getTitle().
|
private |
Definition at line 62 of file class.ilECSParticipantSetting.php.
Referenced by isTokenEnabled().
|
private |
Definition at line 71 of file class.ilECSParticipantSetting.php.
Referenced by getOutgoingUsernamePlaceholders().
const ilECSParticipantSetting::AUTH_VERSION_4 = 1 |
Definition at line 25 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::AUTH_VERSION_5 = 2 |
Definition at line 26 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::ERR_MISSING_USERNAME_PLACEHOLDER = 1 |
Definition at line 43 of file class.ilECSParticipantSetting.php.
Referenced by ilECSParticipantSettingsGUI\saveSettings().
const ilECSParticipantSetting::EXTERNAL_ACCOUNT_PLACEHOLDER = '[EXTERNAL_ACCOUNT]' |
Definition at line 34 of file class.ilECSParticipantSetting.php.
Referenced by ilECSUser\toGET().
const ilECSParticipantSetting::IMPORT_CMS = 3 |
Definition at line 53 of file class.ilECSParticipantSetting.php.
Referenced by ilECSCommunityTableGUI\fillRow(), ilECSParticipantSettings\lookupCmsMid(), and ilECSSettingsGUI\validateImportTypes().
const ilECSParticipantSetting::IMPORT_CRS = 2 |
Definition at line 52 of file class.ilECSParticipantSetting.php.
Referenced by ilECSCommunityTableGUI\fillRow().
const ilECSParticipantSetting::IMPORT_RCRS = 1 |
Definition at line 51 of file class.ilECSParticipantSetting.php.
Referenced by ilECSCommunityTableGUI\fillRow().
const ilECSParticipantSetting::IMPORT_UNCHANGED = 0 |
Definition at line 50 of file class.ilECSParticipantSetting.php.
Referenced by ilECSSettingsGUI\validateImportTypes().
const ilECSParticipantSetting::INCOMING_AUTH_TYPE_INACTIVE = 0 |
Definition at line 36 of file class.ilECSParticipantSetting.php.
Referenced by ilECSParticipantSettingsGUI\initFormSettings().
const ilECSParticipantSetting::INCOMING_AUTH_TYPE_LOGIN_PAGE = 1 |
Definition at line 37 of file class.ilECSParticipantSetting.php.
Referenced by ilAuthProviderECS\handleLoginByAuthMode(), ilECSAppEventListener\handleNewAccountCreation(), and ilECSParticipantSettingsGUI\initFormSettings().
const ilECSParticipantSetting::INCOMING_AUTH_TYPE_SHIBBOLETH = 2 |
Definition at line 38 of file class.ilECSParticipantSetting.php.
Referenced by ilAuthProviderECS\handleLoginByAuthMode(), ilECSAppEventListener\handleNewAccountCreation(), and ilECSParticipantSettingsGUI\initFormSettings().
const ilECSParticipantSetting::LOGIN_PLACEHOLDER = '[LOGIN]' |
Definition at line 33 of file class.ilECSParticipantSetting.php.
Referenced by ilECSUser\toGET().
const ilECSParticipantSetting::OUTGOING_AUTH_MODE_DEFAULT = 'default' |
Definition at line 40 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::PERSON_EPPN = 1 |
Definition at line 28 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::PERSON_LOGIN = 3 |
Definition at line 30 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::PERSON_LUID = 2 |
Definition at line 29 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::PERSON_UID = 4 |
Definition at line 31 of file class.ilECSParticipantSetting.php.
const ilECSParticipantSetting::VALIDATION_OK = 0 |
Definition at line 42 of file class.ilECSParticipantSetting.php.