ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilUserCreationContext Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilUserCreationContext:

Public Member Functions

 getValidContexts ()
 
 getCurrentContexts ()
 
 addContext (int $a_context)
 

Static Public Member Functions

static getInstance ()
 

Data Fields

const CONTEXT_REGISTRATION = 1
 
const CONTEXT_ADMINISTRATION = 2
 
const CONTEXT_SOAP = 3
 
const CONTEXT_LDAP = 4
 
const CONTEXT_SHIB = 6
 

Protected Member Functions

 __construct ()
 

Private Attributes

array $contexts = []
 

Static Private Attributes

static ilUserCreationContext $instance = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

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

Definition at line 22 of file class.ilUserCreationContext.php.

Constructor & Destructor Documentation

◆ __construct()

ilUserCreationContext::__construct ( )
protected

Definition at line 33 of file class.ilUserCreationContext.php.

34  {
35  }

Member Function Documentation

◆ addContext()

ilUserCreationContext::addContext ( int  $a_context)

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

References getCurrentContexts(), and getValidContexts().

61  : void
62  {
63  if (in_array($a_context, $this->getValidContexts())) {
64  if (!in_array($a_context, $this->getCurrentContexts())) {
65  $this->contexts[] = $a_context;
66  }
67  }
68  }
+ Here is the call graph for this function:

◆ getCurrentContexts()

ilUserCreationContext::getCurrentContexts ( )

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

References $contexts.

Referenced by addContext().

56  : array // Missing array type.
57  {
58  return $this->contexts;
59  }
+ Here is the caller graph for this function:

◆ getInstance()

static ilUserCreationContext::getInstance ( )
static

Definition at line 37 of file class.ilUserCreationContext.php.

Referenced by ilECSCmsCourseMemberCommandQueueHandler\createMember(), ilAccountRegistrationGUI\createUser(), ilLDAPUserSynchronisation\performUpdate(), and ilLDAPCronSynchronization\run().

37  : self
38  {
39  if (!self::$instance) {
40  self::$instance = new self();
41  }
42  return self::$instance;
43  }
+ Here is the caller graph for this function:

◆ getValidContexts()

ilUserCreationContext::getValidContexts ( )

Definition at line 45 of file class.ilUserCreationContext.php.

Referenced by addContext().

45  : array // Missing array type.
46  {
47  return [
48  self::CONTEXT_REGISTRATION,
49  self::CONTEXT_ADMINISTRATION,
50  self::CONTEXT_SOAP,
51  self::CONTEXT_LDAP,
52  self::CONTEXT_SHIB
53  ];
54  }
+ Here is the caller graph for this function:

Field Documentation

◆ $contexts

array ilUserCreationContext::$contexts = []
private

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

Referenced by getCurrentContexts().

◆ $instance

ilUserCreationContext ilUserCreationContext::$instance = null
staticprivate

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

◆ CONTEXT_ADMINISTRATION

const ilUserCreationContext::CONTEXT_ADMINISTRATION = 2

Definition at line 25 of file class.ilUserCreationContext.php.

◆ CONTEXT_LDAP

◆ CONTEXT_REGISTRATION

const ilUserCreationContext::CONTEXT_REGISTRATION = 1

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

Referenced by ilAccountRegistrationGUI\createUser().

◆ CONTEXT_SHIB

const ilUserCreationContext::CONTEXT_SHIB = 6

Definition at line 28 of file class.ilUserCreationContext.php.

◆ CONTEXT_SOAP

const ilUserCreationContext::CONTEXT_SOAP = 3

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


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