ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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 }

References getCurrentContexts(), and getValidContexts().

+ Here is the call graph for this function:

◆ getCurrentContexts()

ilUserCreationContext::getCurrentContexts ( )

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

56 : array // Missing array type.
57 {
58 return $this->contexts;
59 }

References $contexts.

Referenced by addContext().

+ Here is the caller graph for this function:

◆ getInstance()

static ilUserCreationContext::getInstance ( )
static

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

37 : self
38 {
39 if (!self::$instance) {
40 self::$instance = new self();
41 }
42 return self::$instance;
43 }
static ilUserCreationContext $instance

References $instance.

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

+ Here is the caller graph for this function:

◆ getValidContexts()

ilUserCreationContext::getValidContexts ( )

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.

Referenced by getInstance().

◆ CONTEXT_ADMINISTRATION

const ilUserCreationContext::CONTEXT_ADMINISTRATION = 2

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

Referenced by getValidContexts().

◆ CONTEXT_LDAP

◆ CONTEXT_REGISTRATION

const ilUserCreationContext::CONTEXT_REGISTRATION = 1

◆ CONTEXT_SHIB

const ilUserCreationContext::CONTEXT_SHIB = 6

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

Referenced by getValidContexts().

◆ CONTEXT_SOAP

const ilUserCreationContext::CONTEXT_SOAP = 3

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

Referenced by getValidContexts().


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