ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilECSParticipantSetting Class Reference
+ Collaboration diagram for ilECSParticipantSetting:

Public Member Functions

 __construct (int $a_server_id, int $mid)
 
 getServerId ()
 Get server id. More...
 
 setMid (int $a_mid)
 
 getMid ()
 
 enableExport (bool $a_status)
 
 isExportEnabled ()
 
 enableImport (bool $a_status)
 
 isImportEnabled ()
 
 setImportType (int $a_type)
 
 getImportType ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 getCommunityName ()
 
 setCommunityName (string $a_name)
 
 isTokenEnabled ()
 
 enableToken (bool $a_stat)
 
 setExportTypes (array $a_types)
 
 getExportTypes ()
 
 getOutgoingUsernamePlaceholders ()
 
 setOutgoingUsernamePlaceholders (array $a_username_placeholders)
 
 getOutgoingUsernamePlaceholderByAuthMode (string $auth_mode)
 
 areIncomingLocalAccountsSupported ()
 
 enableIncomingLocalAccounts (bool $a_status)
 
 setIncomingAuthType (int $incoming_auth_type)
 
 getIncomingAuthType ()
 
 setOutgoingAuthModes (array $auth_modes)
 
 getOutgoingAuthModes ()
 
 getOutgoingExternalAuthModes ()
 
 isOutgoingAuthModeEnabled (string $auth_mode)
 
 setImportTypes (array $a_types)
 
 getImportTypes ()
 
 validate ()
 
 update ()
 Update Calls create automatically when no entry exists. More...
 
 delete ()
 Delete one participant entry. More...
 

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 INCOMING_AUTH_TYPE_OIDC = 3
 
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
 

Detailed Description

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 24 of file class.ilECSParticipantSetting.php.

Constructor & Destructor Documentation

◆ __construct()

ilECSParticipantSetting::__construct ( int  $a_server_id,
int  $mid 
)

Definition at line 85 of file class.ilECSParticipantSetting.php.

86 {
87 global $DIC;
88
89 $this->db = $DIC->database();
90
91 $this->server_id = $a_server_id;
92 $this->mid = $mid;
93 $this->read();
94 }
global $DIC
Definition: shib_login.php:26

References $DIC, $mid, and read().

+ Here is the call graph for this function:

Member Function Documentation

◆ areIncomingLocalAccountsSupported()

ilECSParticipantSetting::areIncomingLocalAccountsSupported ( )

Definition at line 216 of file class.ilECSParticipantSetting.php.

216 : bool
217 {
219 }

References $incoming_local_accounts.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ create()

ilECSParticipantSetting::create ( )
private

Definition at line 328 of file class.ilECSParticipantSetting.php.

328 : bool
329 {
330 $query = 'INSERT INTO ecs_part_settings ' .
331 '(sid,mid,export,import,import_type,title,cname,token,export_types, import_types, username_placeholders, incoming_auth_type, incoming_local_accounts, outgoing_auth_modes) ' .
332 'VALUES( ' .
333 $this->db->quote($this->getServerId(), 'integer') . ', ' .
334 $this->db->quote($this->getMid(), 'integer') . ', ' .
335 $this->db->quote((int) $this->isExportEnabled(), 'integer') . ', ' .
336 $this->db->quote((int) $this->isImportEnabled(), 'integer') . ', ' .
337 $this->db->quote($this->getImportType(), 'integer') . ', ' .
338 $this->db->quote($this->getTitle(), 'text') . ', ' .
339 $this->db->quote($this->getCommunityName(), 'text') . ', ' .
340 $this->db->quote($this->isTokenEnabled(), 'integer') . ', ' .
341 $this->db->quote(serialize($this->getExportTypes()), 'text') . ', ' .
342 $this->db->quote(serialize($this->getImportTypes()), 'text') . ', ' .
343 $this->db->quote(serialize($this->getOutgoingUsernamePlaceholders()), ilDBConstants::T_TEXT) . ', ' .
344 $this->db->quote($this->areIncomingLocalAccountsSupported(), ilDBConstants::T_INTEGER) . ', ' .
345 $this->db->quote($this->getIncomingAuthType(), ilDBConstants::T_INTEGER) . ', ' .
346 $this->db->quote(serialize($this->getOutgoingAuthModes()), ilDBConstants::T_TEXT) . ' ' .
347 ')';
348 $this->db->manipulate($query);
349 return true;
350 }

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete()

ilECSParticipantSetting::delete ( )

Delete one participant entry.

Definition at line 355 of file class.ilECSParticipantSetting.php.

355 : bool
356 {
357 $query = 'DELETE FROM ecs_part_settings ' .
358 'WHERE sid = ' . $this->db->quote($this->getServerId(), 'integer') . ' ' .
359 'AND mid = ' . $this->db->quote($this->getMid(), 'integer');
360 $this->db->manipulate($query);
361 return true;
362 }

References getServerId().

+ Here is the call graph for this function:

◆ enableExport()

ilECSParticipantSetting::enableExport ( bool  $a_status)

Definition at line 129 of file class.ilECSParticipantSetting.php.

129 : void
130 {
131 $this->export = $a_status;
132 }

Referenced by read().

+ Here is the caller graph for this function:

◆ enableImport()

ilECSParticipantSetting::enableImport ( bool  $a_status)

Definition at line 139 of file class.ilECSParticipantSetting.php.

139 : void
140 {
141 $this->import = $a_status;
142 }

Referenced by read().

+ Here is the caller graph for this function:

◆ enableIncomingLocalAccounts()

ilECSParticipantSetting::enableIncomingLocalAccounts ( bool  $a_status)

Definition at line 221 of file class.ilECSParticipantSetting.php.

221 : void
222 {
223 $this->incoming_local_accounts = $a_status;
224 }

Referenced by read().

+ Here is the caller graph for this function:

◆ enableToken()

ilECSParticipantSetting::enableToken ( bool  $a_stat)

Definition at line 186 of file class.ilECSParticipantSetting.php.

186 : void
187 {
188 $this->token = $a_stat;
189 }

Referenced by read().

+ Here is the caller graph for this function:

◆ exists()

ilECSParticipantSetting::exists ( )
private

Definition at line 275 of file class.ilECSParticipantSetting.php.

275 : bool
276 {
277 return $this->exists;
278 }

References $exists.

Referenced by read(), and update().

+ Here is the caller graph for this function:

◆ getCommunityName()

ilECSParticipantSetting::getCommunityName ( )

Definition at line 171 of file class.ilECSParticipantSetting.php.

171 : string
172 {
173 return $this->cname;
174 }

References $cname.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getExportTypes()

ilECSParticipantSetting::getExportTypes ( )

Definition at line 196 of file class.ilECSParticipantSetting.php.

196 : array
197 {
198 return $this->export_types;
199 }

References $export_types.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getImportType()

ilECSParticipantSetting::getImportType ( )

Definition at line 156 of file class.ilECSParticipantSetting.php.

156 : int
157 {
158 return $this->import_type;
159 }

References $import_type.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getImportTypes()

ilECSParticipantSetting::getImportTypes ( )

Definition at line 270 of file class.ilECSParticipantSetting.php.

270 : array
271 {
272 return $this->import_types;
273 }

References $import_types.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getIncomingAuthType()

ilECSParticipantSetting::getIncomingAuthType ( )

Definition at line 231 of file class.ilECSParticipantSetting.php.

231 : int
232 {
234 }

References $incoming_auth_type.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getInstance()

static ilECSParticipantSetting::getInstance ( int  $a_server_id,
int  $mid 
)
static

Get instance by server id and mid.

Parameters
int$a_server_id
int$mid
Returns
ilECSParticipantSetting

Definition at line 102 of file class.ilECSParticipantSetting.php.

103 {
104 if (!isset(self::$instances[$a_server_id . '_' . $mid])) {
105 return self::$instances[$a_server_id . '_' . $mid] = new self($a_server_id, $mid);
106 }
107 return self::$instances[$a_server_id . '_' . $mid];
108 }

References $mid.

Referenced by ilECSCmsCourseCommandQueueHandler\checkAllocationActivation(), ilECSCmsCourseMemberCommandQueueHandler\checkAllocationActivation(), ilECSCommunityReader\createNewParticipants(), ilRemoteObjectBase\getFullRemoteLink(), and ilECSAppEventListener\handleNewAccountCreation().

+ Here is the caller graph for this function:

◆ getMid()

ilECSParticipantSetting::getMid ( )

Definition at line 124 of file class.ilECSParticipantSetting.php.

124 : int
125 {
126 return $this->mid;
127 }

References $mid.

Referenced by create(), read(), and update().

+ Here is the caller graph for this function:

◆ getOutgoingAuthModes()

ilECSParticipantSetting::getOutgoingAuthModes ( )

Definition at line 241 of file class.ilECSParticipantSetting.php.

241 : array
242 {
244 }

References $outgoing_auth_modes.

Referenced by create(), getOutgoingExternalAuthModes(), isOutgoingAuthModeEnabled(), update(), and validate().

+ Here is the caller graph for this function:

◆ getOutgoingExternalAuthModes()

ilECSParticipantSetting::getOutgoingExternalAuthModes ( )
Returns
string[]

Definition at line 249 of file class.ilECSParticipantSetting.php.

249 : array
250 {
251 return array_filter(
252 $this->getOutgoingAuthModes(),
253 static function (string $auth_mode): bool {
254 return $auth_mode !== self::OUTGOING_AUTH_MODE_DEFAULT;
255 }
256 );
257 }

References getOutgoingAuthModes(), and OUTGOING_AUTH_MODE_DEFAULT.

+ Here is the call graph for this function:

◆ getOutgoingUsernamePlaceholderByAuthMode()

ilECSParticipantSetting::getOutgoingUsernamePlaceholderByAuthMode ( string  $auth_mode)

Definition at line 211 of file class.ilECSParticipantSetting.php.

211 : string
212 {
213 return $this->getOutgoingUsernamePlaceholders()[$auth_mode] ?? '';
214 }

References getOutgoingUsernamePlaceholders().

Referenced by validate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOutgoingUsernamePlaceholders()

ilECSParticipantSetting::getOutgoingUsernamePlaceholders ( )

Definition at line 201 of file class.ilECSParticipantSetting.php.

201 : array
202 {
204 }

References $username_placeholders.

Referenced by create(), getOutgoingUsernamePlaceholderByAuthMode(), and update().

+ Here is the caller graph for this function:

◆ getServerId()

ilECSParticipantSetting::getServerId ( )

Get server id.

Definition at line 114 of file class.ilECSParticipantSetting.php.

114 : int
115 {
116 return $this->server_id;
117 }

References $server_id.

Referenced by create(), delete(), read(), and update().

+ Here is the caller graph for this function:

◆ getTitle()

ilECSParticipantSetting::getTitle ( )

Definition at line 166 of file class.ilECSParticipantSetting.php.

166 : string
167 {
168 return $this->title;
169 }

References $title.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ isExportEnabled()

ilECSParticipantSetting::isExportEnabled ( )

Definition at line 134 of file class.ilECSParticipantSetting.php.

134 : bool
135 {
136 return $this->export;
137 }

References $export.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ isImportEnabled()

ilECSParticipantSetting::isImportEnabled ( )

Definition at line 144 of file class.ilECSParticipantSetting.php.

144 : bool
145 {
146 return $this->import;
147 }

References $import.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ isOutgoingAuthModeEnabled()

ilECSParticipantSetting::isOutgoingAuthModeEnabled ( string  $auth_mode)

Definition at line 259 of file class.ilECSParticipantSetting.php.

259 : bool
260 {
261 return (bool) ($this->getOutgoingAuthModes()[$auth_mode] ?? false);
262 }

References getOutgoingAuthModes().

+ Here is the call graph for this function:

◆ isTokenEnabled()

ilECSParticipantSetting::isTokenEnabled ( )

Definition at line 181 of file class.ilECSParticipantSetting.php.

181 : bool
182 {
183 return $this->token;
184 }

References $token.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ read()

ilECSParticipantSetting::read ( )
private

Read stored entry.

Definition at line 367 of file class.ilECSParticipantSetting.php.

367 : void
368 {
369 $query = 'SELECT * FROM ecs_part_settings ' .
370 'WHERE sid = ' . $this->db->quote($this->getServerId(), 'integer') . ' ' .
371 'AND mid = ' . $this->db->quote($this->getMid(), 'integer');
372
373 $res = $this->db->query($query);
374
375 $this->exists = ($res->numRows() ? true : false);
376
377 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
378 $this->enableExport((bool) $row->export);
379 $this->enableImport((bool) $row->import);
380 $this->setImportType((int) $row->import_type);
381 $this->setTitle($row->title);
382 $this->setCommunityName($row->cname);
383 $this->enableToken((bool) $row->token);
384 $this->setExportTypes((array) unserialize($row->export_types, ['allowed_classes' => true]));
385 $this->setImportTypes((array) unserialize($row->import_types, ['allowed_classes' => true]));
386 $this->setOutgoingUsernamePlaceholders((array) unserialize((string) $row->username_placeholders, ['allowed_classes' => true]));
387 $this->setIncomingAuthType((int) $row->incoming_auth_type);
388 $this->enableIncomingLocalAccounts((bool) $row->incoming_local_accounts);
389 $this->setOutgoingAuthModes((array) unserialize((string) $row->outgoing_auth_modes, ['allowed_classes' => true]));
390 }
391 }
return true
setOutgoingUsernamePlaceholders(array $a_username_placeholders)
setIncomingAuthType(int $incoming_auth_type)
$res
Definition: ltiservices.php:69

References $res, enableExport(), enableImport(), enableIncomingLocalAccounts(), enableToken(), exists(), ilDBConstants\FETCHMODE_OBJECT, getMid(), getServerId(), setCommunityName(), setExportTypes(), setImportType(), setImportTypes(), setIncomingAuthType(), setOutgoingAuthModes(), setOutgoingUsernamePlaceholders(), setTitle(), and true.

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCommunityName()

ilECSParticipantSetting::setCommunityName ( string  $a_name)

Definition at line 176 of file class.ilECSParticipantSetting.php.

176 : void
177 {
178 $this->cname = $a_name;
179 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setExportTypes()

ilECSParticipantSetting::setExportTypes ( array  $a_types)

Definition at line 191 of file class.ilECSParticipantSetting.php.

191 : void
192 {
193 $this->export_types = $a_types;
194 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setImportType()

ilECSParticipantSetting::setImportType ( int  $a_type)

Definition at line 149 of file class.ilECSParticipantSetting.php.

149 : void
150 {
151 if ($a_type !== self::IMPORT_UNCHANGED) {
152 $this->import_type = $a_type;
153 }
154 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setImportTypes()

ilECSParticipantSetting::setImportTypes ( array  $a_types)

Definition at line 265 of file class.ilECSParticipantSetting.php.

265 : void
266 {
267 $this->import_types = $a_types;
268 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setIncomingAuthType()

ilECSParticipantSetting::setIncomingAuthType ( int  $incoming_auth_type)

Definition at line 226 of file class.ilECSParticipantSetting.php.

226 : void
227 {
228 $this->incoming_auth_type = $incoming_auth_type;
229 }

References $incoming_auth_type.

Referenced by read().

+ Here is the caller graph for this function:

◆ setMid()

ilECSParticipantSetting::setMid ( int  $a_mid)

Definition at line 119 of file class.ilECSParticipantSetting.php.

119 : void
120 {
121 $this->mid = $a_mid;
122 }

◆ setOutgoingAuthModes()

ilECSParticipantSetting::setOutgoingAuthModes ( array  $auth_modes)

Definition at line 236 of file class.ilECSParticipantSetting.php.

236 : void
237 {
238 $this->outgoing_auth_modes = $auth_modes;
239 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setOutgoingUsernamePlaceholders()

ilECSParticipantSetting::setOutgoingUsernamePlaceholders ( array  $a_username_placeholders)

Definition at line 206 of file class.ilECSParticipantSetting.php.

206 : void
207 {
208 $this->username_placeholders = $a_username_placeholders;
209 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setTitle()

ilECSParticipantSetting::setTitle ( string  $a_title)

Definition at line 161 of file class.ilECSParticipantSetting.php.

161 : void
162 {
163 $this->title = $a_title;
164 }

Referenced by read().

+ Here is the caller graph for this function:

◆ update()

ilECSParticipantSetting::update ( )

Update Calls create automatically when no entry exists.

Definition at line 301 of file class.ilECSParticipantSetting.php.

301 : bool
302 {
303 if (!$this->exists()) {
304 return $this->create();
305 }
306 $query = 'UPDATE ecs_part_settings ' .
307 'SET ' .
308 'sid = ' . $this->db->quote($this->getServerId(), 'integer') . ', ' .
309 'mid = ' . $this->db->quote($this->getMid(), 'integer') . ', ' .
310 'export = ' . $this->db->quote((int) $this->isExportEnabled(), 'integer') . ', ' .
311 'import = ' . $this->db->quote((int) $this->isImportEnabled(), 'integer') . ', ' .
312 'import_type = ' . $this->db->quote($this->getImportType(), 'integer') . ', ' .
313 'title = ' . $this->db->quote($this->getTitle(), 'text') . ', ' .
314 'cname = ' . $this->db->quote($this->getCommunityName(), 'text') . ', ' .
315 'token = ' . $this->db->quote($this->isTokenEnabled(), 'integer') . ', ' .
316 'export_types = ' . $this->db->quote(serialize($this->getExportTypes()), 'text') . ', ' .
317 'import_types = ' . $this->db->quote(serialize($this->getImportTypes()), ilDBConstants::T_TEXT) . ', ' .
318 'username_placeholders = ' . $this->db->quote(serialize($this->getOutgoingUsernamePlaceholders()), ilDBConstants::T_TEXT) . ', ' .
319 'incoming_local_accounts = ' . $this->db->quote($this->areIncomingLocalAccountsSupported(), ilDBConstants::T_INTEGER) . ', ' .
320 'incoming_auth_type = ' . $this->db->quote($this->getIncomingAuthType(), ilDBConstants::T_INTEGER) . ', ' .
321 'outgoing_auth_modes = ' . $this->db->quote(serialize($this->getOutgoingAuthModes()), ilDBConstants::T_TEXT) . ' ' .
322 'WHERE sid = ' . $this->db->quote($this->getServerId(), 'integer') . ' ' .
323 'AND mid = ' . $this->db->quote($this->getMid(), 'integer');
324 $this->db->manipulate($query);
325 return true;
326 }

References areIncomingLocalAccountsSupported(), create(), exists(), getCommunityName(), getExportTypes(), getImportType(), getImportTypes(), getIncomingAuthType(), getMid(), getOutgoingAuthModes(), getOutgoingUsernamePlaceholders(), getServerId(), getTitle(), isExportEnabled(), isImportEnabled(), isTokenEnabled(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.

+ Here is the call graph for this function:

◆ validate()

ilECSParticipantSetting::validate ( )

Definition at line 280 of file class.ilECSParticipantSetting.php.

280 : int
281 {
282 foreach ($this->getOutgoingAuthModes() as $auth_mode) {
283 if ($auth_mode === self::OUTGOING_AUTH_MODE_DEFAULT) {
284 continue;
285 }
286 $placeholder = $this->getOutgoingUsernamePlaceholderByAuthMode($auth_mode);
287 if (
288 !stristr($placeholder, self::LOGIN_PLACEHOLDER) &&
289 !stristr($placeholder, self::EXTERNAL_ACCOUNT_PLACEHOLDER)
290 ) {
292 }
293 }
294 return self::VALIDATION_OK;
295 }
getOutgoingUsernamePlaceholderByAuthMode(string $auth_mode)

References ERR_MISSING_USERNAME_PLACEHOLDER, getOutgoingAuthModes(), getOutgoingUsernamePlaceholderByAuthMode(), and VALIDATION_OK.

+ Here is the call graph for this function:

Field Documentation

◆ $auth_version

int ilECSParticipantSetting::$auth_version = self::AUTH_VERSION_4
private

Definition at line 67 of file class.ilECSParticipantSetting.php.

◆ $cname

string ilECSParticipantSetting::$cname = ''
private

Definition at line 63 of file class.ilECSParticipantSetting.php.

Referenced by getCommunityName().

◆ $db

ilDBInterface ilECSParticipantSetting::$db
private

Definition at line 83 of file class.ilECSParticipantSetting.php.

◆ $dtoken

bool ilECSParticipantSetting::$dtoken = true
private

Definition at line 65 of file class.ilECSParticipantSetting.php.

◆ $exists

bool ilECSParticipantSetting::$exists = false
private

Definition at line 81 of file class.ilECSParticipantSetting.php.

Referenced by exists().

◆ $export

bool ilECSParticipantSetting::$export = false
private

Definition at line 59 of file class.ilECSParticipantSetting.php.

Referenced by isExportEnabled().

◆ $export_types

array ilECSParticipantSetting::$export_types = array()
private

Definition at line 71 of file class.ilECSParticipantSetting.php.

Referenced by getExportTypes().

◆ $import

bool ilECSParticipantSetting::$import = false
private

Definition at line 60 of file class.ilECSParticipantSetting.php.

Referenced by isImportEnabled().

◆ $import_type

int ilECSParticipantSetting::$import_type = 1
private

Definition at line 61 of file class.ilECSParticipantSetting.php.

Referenced by getImportType().

◆ $import_types

array ilECSParticipantSetting::$import_types = array()
private

Definition at line 72 of file class.ilECSParticipantSetting.php.

Referenced by getImportTypes().

◆ $incoming_auth_type

int ilECSParticipantSetting::$incoming_auth_type = self::INCOMING_AUTH_TYPE_INACTIVE
private

Definition at line 75 of file class.ilECSParticipantSetting.php.

Referenced by getIncomingAuthType(), and setIncomingAuthType().

◆ $incoming_local_accounts

bool ilECSParticipantSetting::$incoming_local_accounts = true
private

Definition at line 74 of file class.ilECSParticipantSetting.php.

Referenced by areIncomingLocalAccountsSupported().

◆ $instances

array ilECSParticipantSetting::$instances = []
staticprotected

Definition at line 48 of file class.ilECSParticipantSetting.php.

◆ $mid

int ilECSParticipantSetting::$mid
private

Definition at line 58 of file class.ilECSParticipantSetting.php.

Referenced by __construct(), getInstance(), and getMid().

◆ $outgoing_auth_modes

array ilECSParticipantSetting::$outgoing_auth_modes = []
private

Definition at line 79 of file class.ilECSParticipantSetting.php.

Referenced by getOutgoingAuthModes().

◆ $person_type

int ilECSParticipantSetting::$person_type = self::PERSON_UID
private

Definition at line 68 of file class.ilECSParticipantSetting.php.

◆ $server_id

int ilECSParticipantSetting::$server_id
private

Definition at line 57 of file class.ilECSParticipantSetting.php.

Referenced by getServerId().

◆ $title

string ilECSParticipantSetting::$title = ''
private

Definition at line 62 of file class.ilECSParticipantSetting.php.

Referenced by getTitle().

◆ $token

bool ilECSParticipantSetting::$token = true
private

Definition at line 64 of file class.ilECSParticipantSetting.php.

Referenced by isTokenEnabled().

◆ $username_placeholders

array ilECSParticipantSetting::$username_placeholders = []
private

Definition at line 73 of file class.ilECSParticipantSetting.php.

Referenced by getOutgoingUsernamePlaceholders().

◆ AUTH_VERSION_4

const ilECSParticipantSetting::AUTH_VERSION_4 = 1

Definition at line 26 of file class.ilECSParticipantSetting.php.

◆ AUTH_VERSION_5

const ilECSParticipantSetting::AUTH_VERSION_5 = 2

Definition at line 27 of file class.ilECSParticipantSetting.php.

◆ ERR_MISSING_USERNAME_PLACEHOLDER

const ilECSParticipantSetting::ERR_MISSING_USERNAME_PLACEHOLDER = 1

◆ EXTERNAL_ACCOUNT_PLACEHOLDER

const ilECSParticipantSetting::EXTERNAL_ACCOUNT_PLACEHOLDER = '[EXTERNAL_ACCOUNT]'

Definition at line 35 of file class.ilECSParticipantSetting.php.

Referenced by ilECSUser\toGET().

◆ IMPORT_CMS

const ilECSParticipantSetting::IMPORT_CMS = 3

◆ IMPORT_CRS

const ilECSParticipantSetting::IMPORT_CRS = 2

Definition at line 54 of file class.ilECSParticipantSetting.php.

Referenced by ilECSCommunityTableGUI\fillRow().

◆ IMPORT_RCRS

const ilECSParticipantSetting::IMPORT_RCRS = 1

Definition at line 53 of file class.ilECSParticipantSetting.php.

Referenced by ilECSCommunityTableGUI\fillRow().

◆ IMPORT_UNCHANGED

const ilECSParticipantSetting::IMPORT_UNCHANGED = 0

◆ INCOMING_AUTH_TYPE_INACTIVE

const ilECSParticipantSetting::INCOMING_AUTH_TYPE_INACTIVE = 0

◆ INCOMING_AUTH_TYPE_LOGIN_PAGE

const ilECSParticipantSetting::INCOMING_AUTH_TYPE_LOGIN_PAGE = 1

◆ INCOMING_AUTH_TYPE_OIDC

const ilECSParticipantSetting::INCOMING_AUTH_TYPE_OIDC = 3

◆ INCOMING_AUTH_TYPE_SHIBBOLETH

const ilECSParticipantSetting::INCOMING_AUTH_TYPE_SHIBBOLETH = 2

◆ LOGIN_PLACEHOLDER

const ilECSParticipantSetting::LOGIN_PLACEHOLDER = '[LOGIN]'

Definition at line 34 of file class.ilECSParticipantSetting.php.

Referenced by ilECSUser\toGET().

◆ OUTGOING_AUTH_MODE_DEFAULT

const ilECSParticipantSetting::OUTGOING_AUTH_MODE_DEFAULT = 'default'

Definition at line 42 of file class.ilECSParticipantSetting.php.

Referenced by getOutgoingExternalAuthModes().

◆ PERSON_EPPN

const ilECSParticipantSetting::PERSON_EPPN = 1

Definition at line 29 of file class.ilECSParticipantSetting.php.

◆ PERSON_LOGIN

const ilECSParticipantSetting::PERSON_LOGIN = 3

Definition at line 31 of file class.ilECSParticipantSetting.php.

◆ PERSON_LUID

const ilECSParticipantSetting::PERSON_LUID = 2

Definition at line 30 of file class.ilECSParticipantSetting.php.

◆ PERSON_UID

const ilECSParticipantSetting::PERSON_UID = 4

Definition at line 32 of file class.ilECSParticipantSetting.php.

◆ VALIDATION_OK

const ilECSParticipantSetting::VALIDATION_OK = 0

Definition at line 44 of file class.ilECSParticipantSetting.php.

Referenced by validate().


The documentation for this class was generated from the following file: