ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilECSParticipantSettings Class Reference
+ Collaboration diagram for ilECSParticipantSettings:

Public Member Functions

 getEnabledParticipants ()
 get number of participants that are enabled
 isEnabled ($a_mid)
 is partivcipant enabled
 setEnabledParticipants ($a_parts)
 set enabled participants by community
 save ()
 save

Static Public Member Functions

static _getInstance ()
 get instance

Protected Attributes

 $storage = null
 $enabled = array()
 $all_enabled = array()

Private Member Functions

 __construct ()
 Constructor (Singleton)
 initStorage ()
 Init storage class (ilSetting) private.
 read ()
 Read settings.

Static Private Attributes

static $instance = null

Detailed Description

Author
Stefan Meyer smeye.nosp@m.r@da.nosp@m.tabay.nosp@m..de
Version
$Id$

Definition at line 32 of file class.ilECSParticipantSettings.php.

Constructor & Destructor Documentation

ilECSParticipantSettings::__construct ( )
private

Constructor (Singleton)

private

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

References initStorage(), and read().

{
$this->initStorage();
$this->read();
}

+ Here is the call graph for this function:

Member Function Documentation

static ilECSParticipantSettings::_getInstance ( )
static

get instance

public

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

References $instance.

Referenced by ilECSCommunityTableGUI\__construct(), ilECSParticipant\__construct(), ilECSTaskScheduler\handleUpdate(), and ilECSSettingsGUI\updateCommunities().

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

+ Here is the caller graph for this function:

ilECSParticipantSettings::getEnabledParticipants ( )

get number of participants that are enabled

public

Definition at line 76 of file class.ilECSParticipantSettings.php.

{
return $this->enabled ? $this->enabled : array();
}
ilECSParticipantSettings::initStorage ( )
private

Init storage class (ilSetting) private.

Definition at line 121 of file class.ilECSParticipantSettings.php.

Referenced by __construct().

{
include_once('./Services/Administration/classes/class.ilSetting.php');
$this->storage = new ilSetting('ecs_participants');
}

+ Here is the caller graph for this function:

ilECSParticipantSettings::isEnabled (   $a_mid)

is partivcipant enabled

public

Parameters
intmid

Definition at line 88 of file class.ilECSParticipantSettings.php.

{
return in_array($a_mid,$this->enabled);
}
ilECSParticipantSettings::read ( )
private

Read settings.

private

Parameters

Definition at line 134 of file class.ilECSParticipantSettings.php.

References $enabled.

Referenced by __construct().

{
$enabled = $this->storage->get('enabled');
{
$this->enabled = unserialize(stripslashes($enabled));
}
}

+ Here is the caller graph for this function:

ilECSParticipantSettings::save ( )

save

public

Definition at line 111 of file class.ilECSParticipantSettings.php.

{
$this->storage->set('enabled',addslashes(serialize($this->enabled)));
}
ilECSParticipantSettings::setEnabledParticipants (   $a_parts)

set enabled participants by community

public

Parameters
intcommunity id
arrayparticipant ids

Definition at line 100 of file class.ilECSParticipantSettings.php.

{
$this->enabled = (array) $a_parts;
}

Field Documentation

ilECSParticipantSettings::$all_enabled = array()
protected

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

ilECSParticipantSettings::$enabled = array()
protected

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

Referenced by read().

ilECSParticipantSettings::$instance = null
staticprivate

Definition at line 34 of file class.ilECSParticipantSettings.php.

Referenced by _getInstance().

ilECSParticipantSettings::$storage = null
protected

Definition at line 35 of file class.ilECSParticipantSettings.php.


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