ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilUserCreationContext Class Reference
+ Collaboration diagram for ilUserCreationContext:

Public Member Functions

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

Static Public Member Functions

static getInstance ()
 Get instance.

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.

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

ilUserCreationContext::__construct ( )
protected

Default constructor.

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

{
}

Member Function Documentation

ilUserCreationContext::addContext (   $a_context)

Add context.

Parameters
type$a_context

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

References getCurrentContexts(), and getValidContexts().

{
if(in_array($a_context, $this->getValidContexts()))
{
if(!in_array($a_context, $this->getCurrentContexts()))
{
$this->contexts[] = $a_context;
}
}
}

+ Here is the call graph for this function:

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:

static ilUserCreationContext::getInstance ( )
static

Get instance.

Returns
ilUserCreationContext

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

References $instance.

Referenced by ilLDAPUserSynchronisation\performUpdate(), and ilLDAPCronSynchronization\run().

{
if(!self::$instance)
{
self::$instance = new self();
}
}

+ Here is the caller graph for this function:

ilUserCreationContext::getValidContexts ( )

get contexts

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

Referenced by addContext().

{
return array(
self::CONTEXT_REGISTRATION,
self::CONTEXT_ADMINISTRATION,
self::CONTEXT_SOAP,
self::CONTEXT_LDAP,
self::CONTEXT_RADIUS,
self::CONTEXT_SHIB
);
}

+ Here is the caller graph for this function:

Field Documentation

ilUserCreationContext::$contexts = array()
private

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

Referenced by getCurrentContexts().

ilUserCreationContext::$instance = null
staticprivate

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

Referenced by getInstance().

const ilUserCreationContext::CONTEXT_ADMINISTRATION = 2

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

const ilUserCreationContext::CONTEXT_LDAP = 4
const ilUserCreationContext::CONTEXT_RADIUS = 5

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

const ilUserCreationContext::CONTEXT_REGISTRATION = 1

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

const ilUserCreationContext::CONTEXT_SHIB = 6

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

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: