ILIAS
Release_5_0_x_branch Revision 61816
|
Settings for members view More...
Public Member Functions | |
getContainer () | |
Returns $container. | |
getCurrentRefId () | |
Get current ref_id of request. | |
setContainer ($container) | |
Sets $container. | |
isActive () | |
Check if member view currently enabled. | |
isActiveForRefId ($a_ref_id) | |
Check if member view is currently enabled for given ref id. | |
activate ($a_ref_id) | |
Enable member view for this session and container. | |
deactivate () | |
Deactivate member view. | |
toggleActivation ($a_ref_id, $a_activation) | |
Toggle activation status. | |
isEnabled () | |
Check if members view is enabled in the administration. |
Static Public Member Functions | |
static | getInstance () |
Get instance. |
Protected Member Functions | |
read () | |
Read settings. | |
findEffectiveRefId () | |
Find effective ref_id for request. |
Private Member Functions | |
__construct () | |
Constructor (singleton) |
Private Attributes | |
$active = false | |
$enabled = false | |
$container = null | |
$container_items = array() | |
$current_ref_id = 0 |
Static Private Attributes | |
static | $instance = null |
Settings for members view
Definition at line 29 of file class.ilMemberViewSettings.php.
|
private |
Constructor (singleton)
Definition at line 44 of file class.ilMemberViewSettings.php.
References read().
ilMemberViewSettings::activate | ( | $a_ref_id | ) |
Enable member view for this session and container.
int | $a_ref_id | Reference Id of course or group |
IllegalArgumentException | Thrown if reference id is not a course or group |
Definition at line 150 of file class.ilMemberViewSettings.php.
References setContainer().
Referenced by toggleActivation().
ilMemberViewSettings::deactivate | ( | ) |
Deactivate member view.
Definition at line 160 of file class.ilMemberViewSettings.php.
References $_SESSION.
Referenced by toggleActivation().
|
protected |
Find effective ref_id for request.
Definition at line 221 of file class.ilMemberViewSettings.php.
References $_GET, and $target_arr.
Referenced by read().
ilMemberViewSettings::getContainer | ( | ) |
Returns $container.
Definition at line 66 of file class.ilMemberViewSettings.php.
References $container.
Referenced by isActive(), isActiveForRefId(), and read().
ilMemberViewSettings::getCurrentRefId | ( | ) |
Get current ref_id of request.
Definition at line 75 of file class.ilMemberViewSettings.php.
References $current_ref_id.
Referenced by isActive().
|
static |
Get instance.
Definition at line 53 of file class.ilMemberViewSettings.php.
References $instance.
Referenced by ilConditionHandler\_checkAllConditionsOfTarget(), ilObjCourseAccess\_isActivated(), ilLocatorGUI\addRepositoryItems(), ilObjGroupGUI\checkAgreement(), ilObjCourseGUI\checkAgreement(), ilAccessHandler\doActivationCheck(), ilMainMenuGUI\ilMainMenuGUI(), ilMainMenuGUI\initMemberView(), ilCache\isDisabled(), ilObjectListGUI\parseConditions(), ilObjCourseGUI\prepareOutput(), ilMemberViewGUI\showMemberViewSwitch(), and ilContainerGUI\showTreeFlatIcon().
ilMemberViewSettings::isActive | ( | ) |
Check if member view currently enabled.
Definition at line 96 of file class.ilMemberViewSettings.php.
References getContainer(), and getCurrentRefId().
ilMemberViewSettings::isActiveForRefId | ( | $a_ref_id | ) |
Check if member view is currently enabled for given ref id.
int | $a_ref_id |
Definition at line 127 of file class.ilMemberViewSettings.php.
References getContainer().
ilMemberViewSettings::isEnabled | ( | ) |
Check if members view is enabled in the administration.
Definition at line 189 of file class.ilMemberViewSettings.php.
References $enabled.
|
protected |
Read settings.
Definition at line 198 of file class.ilMemberViewSettings.php.
References $_SESSION, $ilSetting, findEffectiveRefId(), and getContainer().
Referenced by __construct().
ilMemberViewSettings::setContainer | ( | $container | ) |
Sets $container.
object | $container |
Definition at line 85 of file class.ilMemberViewSettings.php.
References $_SESSION, and $container.
Referenced by activate().
ilMemberViewSettings::toggleActivation | ( | $a_ref_id, | |
$a_activation | |||
) |
Toggle activation status.
int | $a_ref_id | |
bool | $a_activation |
Definition at line 173 of file class.ilMemberViewSettings.php.
References activate(), and deactivate().
|
private |
Definition at line 33 of file class.ilMemberViewSettings.php.
|
private |
Definition at line 35 of file class.ilMemberViewSettings.php.
Referenced by getContainer(), and setContainer().
|
private |
Definition at line 36 of file class.ilMemberViewSettings.php.
|
private |
Definition at line 38 of file class.ilMemberViewSettings.php.
Referenced by getCurrentRefId().
|
private |
Definition at line 34 of file class.ilMemberViewSettings.php.
Referenced by isEnabled().
|
staticprivate |
Definition at line 31 of file class.ilMemberViewSettings.php.
Referenced by getInstance().