ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
32  }

Member Function Documentation

◆ addContext()

ilUserCreationContext::addContext (   $a_context)

Add context.

Parameters
type$a_context

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

References getCurrentContexts(), and getValidContexts().

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

◆ getCurrentContexts()

ilUserCreationContext::getCurrentContexts ( )

Get contexts.

Returns
type

Definition at line 66 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 38 of file class.ilUserCreationContext.php.

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

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

◆ getValidContexts()

ilUserCreationContext::getValidContexts ( )

get contexts

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

References array.

Referenced by addContext().

51  {
52  return array(
53  self::CONTEXT_REGISTRATION,
54  self::CONTEXT_ADMINISTRATION,
55  self::CONTEXT_SOAP,
56  self::CONTEXT_LDAP,
57  self::CONTEXT_RADIUS,
58  self::CONTEXT_SHIB
59  );
60  }
Create styles array
The data for the language used.
+ 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: