ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 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 84 of file class.ilECSParticipantSetting.php.

85 {
86 global $DIC;
87
88 $this->db = $DIC->database();
89
90 $this->server_id = $a_server_id;
91 $this->mid = $mid;
92 $this->read();
93 }
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 215 of file class.ilECSParticipantSetting.php.

215 : bool
216 {
218 }

References $incoming_local_accounts.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ create()

ilECSParticipantSetting::create ( )
private

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

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

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 354 of file class.ilECSParticipantSetting.php.

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

References getServerId().

+ Here is the call graph for this function:

◆ enableExport()

ilECSParticipantSetting::enableExport ( bool  $a_status)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ enableImport()

ilECSParticipantSetting::enableImport ( bool  $a_status)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ enableIncomingLocalAccounts()

ilECSParticipantSetting::enableIncomingLocalAccounts ( bool  $a_status)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ enableToken()

ilECSParticipantSetting::enableToken ( bool  $a_stat)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ exists()

ilECSParticipantSetting::exists ( )
private

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

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

References $exists.

Referenced by read(), and update().

+ Here is the caller graph for this function:

◆ getCommunityName()

ilECSParticipantSetting::getCommunityName ( )

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

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

References $cname.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getExportTypes()

ilECSParticipantSetting::getExportTypes ( )

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

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

References $export_types.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getImportType()

ilECSParticipantSetting::getImportType ( )

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

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

References $import_type.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getImportTypes()

ilECSParticipantSetting::getImportTypes ( )

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

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

References $import_types.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getIncomingAuthType()

ilECSParticipantSetting::getIncomingAuthType ( )

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

230 : int
231 {
233 }

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 101 of file class.ilECSParticipantSetting.php.

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

References $mid.

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

+ Here is the caller graph for this function:

◆ getMid()

ilECSParticipantSetting::getMid ( )

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

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

References $mid.

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

+ Here is the caller graph for this function:

◆ getOutgoingAuthModes()

ilECSParticipantSetting::getOutgoingAuthModes ( )

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

240 : array
241 {
243 }

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 248 of file class.ilECSParticipantSetting.php.

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

References getOutgoingAuthModes(), and OUTGOING_AUTH_MODE_DEFAULT.

+ Here is the call graph for this function:

◆ getOutgoingUsernamePlaceholderByAuthMode()

ilECSParticipantSetting::getOutgoingUsernamePlaceholderByAuthMode ( string  $auth_mode)

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

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

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 200 of file class.ilECSParticipantSetting.php.

200 : array
201 {
203 }

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 113 of file class.ilECSParticipantSetting.php.

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

References $server_id.

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

+ Here is the caller graph for this function:

◆ getTitle()

ilECSParticipantSetting::getTitle ( )

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

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

References $title.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ isExportEnabled()

ilECSParticipantSetting::isExportEnabled ( )

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

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

References $export.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ isImportEnabled()

ilECSParticipantSetting::isImportEnabled ( )

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

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

References $import.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ isOutgoingAuthModeEnabled()

ilECSParticipantSetting::isOutgoingAuthModeEnabled ( string  $auth_mode)

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

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

References getOutgoingAuthModes().

+ Here is the call graph for this function:

◆ isTokenEnabled()

ilECSParticipantSetting::isTokenEnabled ( )

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

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

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 366 of file class.ilECSParticipantSetting.php.

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setExportTypes()

ilECSParticipantSetting::setExportTypes ( array  $a_types)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setImportType()

ilECSParticipantSetting::setImportType ( int  $a_type)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setImportTypes()

ilECSParticipantSetting::setImportTypes ( array  $a_types)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setIncomingAuthType()

ilECSParticipantSetting::setIncomingAuthType ( int  $incoming_auth_type)

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

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

References $incoming_auth_type.

Referenced by read().

+ Here is the caller graph for this function:

◆ setMid()

ilECSParticipantSetting::setMid ( int  $a_mid)

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

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

◆ setOutgoingAuthModes()

ilECSParticipantSetting::setOutgoingAuthModes ( array  $auth_modes)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setOutgoingUsernamePlaceholders()

ilECSParticipantSetting::setOutgoingUsernamePlaceholders ( array  $a_username_placeholders)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setTitle()

ilECSParticipantSetting::setTitle ( string  $a_title)

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

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

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 300 of file class.ilECSParticipantSetting.php.

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

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 279 of file class.ilECSParticipantSetting.php.

279 : int
280 {
281 foreach ($this->getOutgoingAuthModes() as $auth_mode) {
282 if ($auth_mode === self::OUTGOING_AUTH_MODE_DEFAULT) {
283 continue;
284 }
285 $placeholder = $this->getOutgoingUsernamePlaceholderByAuthMode($auth_mode);
286 if (
287 !stristr($placeholder, self::LOGIN_PLACEHOLDER) &&
288 !stristr($placeholder, self::EXTERNAL_ACCOUNT_PLACEHOLDER)
289 ) {
291 }
292 }
293 return self::VALIDATION_OK;
294 }
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 66 of file class.ilECSParticipantSetting.php.

◆ $cname

string ilECSParticipantSetting::$cname = ''
private

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

Referenced by getCommunityName().

◆ $db

ilDBInterface ilECSParticipantSetting::$db
private

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

◆ $dtoken

bool ilECSParticipantSetting::$dtoken = true
private

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

◆ $exists

bool ilECSParticipantSetting::$exists = false
private

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

Referenced by exists().

◆ $export

bool ilECSParticipantSetting::$export = false
private

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

Referenced by isExportEnabled().

◆ $export_types

array ilECSParticipantSetting::$export_types = array()
private

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

Referenced by getExportTypes().

◆ $import

bool ilECSParticipantSetting::$import = false
private

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

Referenced by isImportEnabled().

◆ $import_type

int ilECSParticipantSetting::$import_type = 1
private

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

Referenced by getImportType().

◆ $import_types

array ilECSParticipantSetting::$import_types = array()
private

Definition at line 71 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 74 of file class.ilECSParticipantSetting.php.

Referenced by getIncomingAuthType(), and setIncomingAuthType().

◆ $incoming_local_accounts

bool ilECSParticipantSetting::$incoming_local_accounts = true
private

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

Referenced by areIncomingLocalAccountsSupported().

◆ $instances

array ilECSParticipantSetting::$instances = []
staticprotected

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

◆ $mid

int ilECSParticipantSetting::$mid
private

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

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

◆ $outgoing_auth_modes

array ilECSParticipantSetting::$outgoing_auth_modes = []
private

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

Referenced by getOutgoingAuthModes().

◆ $person_type

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

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

◆ $server_id

int ilECSParticipantSetting::$server_id
private

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

Referenced by getServerId().

◆ $title

string ilECSParticipantSetting::$title = ''
private

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

Referenced by getTitle().

◆ $token

bool ilECSParticipantSetting::$token = true
private

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

Referenced by isTokenEnabled().

◆ $username_placeholders

array ilECSParticipantSetting::$username_placeholders = []
private

Definition at line 72 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 53 of file class.ilECSParticipantSetting.php.

Referenced by ilECSCommunityTableGUI\fillRow().

◆ IMPORT_RCRS

const ilECSParticipantSetting::IMPORT_RCRS = 1

Definition at line 52 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_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 41 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 43 of file class.ilECSParticipantSetting.php.

Referenced by validate().


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