ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilUserCreationContext Class Reference
+ Collaboration diagram for ilUserCreationContext:

Public Member Functions

 getValidContexts ()
 get contexts More...
 
 getCurrentContexts ()
 Get contexts. More...
 
 addContext ($a_context)
 Add context. More...
 

Static Public Member Functions

static getInstance ()
 Get instance. More...
 

Data Fields

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

Protected Member Functions

 __construct ()
 Default constructor. More...
 

Private Attributes

 $contexts = array()
 

Static Private Attributes

static $instance = null
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

ilUserCreationContext::__construct ( )
protected

Default constructor.

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

30  {
31  }

Member Function Documentation

◆ addContext()

ilUserCreationContext::addContext (   $a_context)

Add context.

Parameters
type$a_context

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

References getCurrentContexts(), and getValidContexts().

74  {
75  if (in_array($a_context, $this->getValidContexts())) {
76  if (!in_array($a_context, $this->getCurrentContexts())) {
77  $this->contexts[] = $a_context;
78  }
79  }
80  }
+ Here is the call graph for this function:

◆ getCurrentContexts()

ilUserCreationContext::getCurrentContexts ( )

Get contexts.

Returns
type

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

References $contexts.

Referenced by addContext().

+ Here is the caller graph for this function:

◆ getInstance()

static ilUserCreationContext::getInstance ( )
static

Get instance.

Returns
ilUserCreationContext

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

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

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

get contexts

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

Referenced by addContext().

49  {
50  return array(
51  self::CONTEXT_REGISTRATION,
52  self::CONTEXT_ADMINISTRATION,
53  self::CONTEXT_SOAP,
54  self::CONTEXT_LDAP,
55  self::CONTEXT_RADIUS,
56  self::CONTEXT_SHIB
57  );
58  }
+ Here is the caller graph for this function:

Field Documentation

◆ $contexts

ilUserCreationContext::$contexts = array()
private

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

Referenced by getCurrentContexts().

◆ $instance

ilUserCreationContext::$instance = null
staticprivate

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

◆ CONTEXT_ADMINISTRATION

const ilUserCreationContext::CONTEXT_ADMINISTRATION = 2

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

◆ CONTEXT_LDAP

◆ CONTEXT_RADIUS

const ilUserCreationContext::CONTEXT_RADIUS = 5

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

◆ CONTEXT_REGISTRATION

const ilUserCreationContext::CONTEXT_REGISTRATION = 1

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

Referenced by ilAccountRegistrationGUI\saveForm().

◆ CONTEXT_SHIB

const ilUserCreationContext::CONTEXT_SHIB = 6

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

◆ CONTEXT_SOAP

const ilUserCreationContext::CONTEXT_SOAP = 3

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


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