ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_ref_id) | |
getMode () | |
switchMode (int $a_new_mode) | |
getActiveUsers () | |
activateUser (int $a_user_id=null) | |
deactivateUser (int $a_user_id=null) | |
isCurrentUserActive () | |
canCurrentUserEdit () | |
cloneSettings (int $new_ref_id) | |
Static Public Member Functions | |
static | isActive () |
static | isActiveForRefId (int $ref_id) |
static | getActiveUsersforAllObjects () |
Get active notifications for all objects. More... | |
static | addToSettingsForm (int $a_ref_id, ?ilPropertyFormGUI $a_form=null, ?ilFormPropertyGUI $a_input=null) |
Add notification settings to form. More... | |
static | importFromForm (int $a_ref_id, ?ilPropertyFormGUI $a_form=null) |
Protected Member Functions | |
read () | |
setMode (int $a_value) | |
isValidMode (int $a_value) | |
getParticipants () | |
getUser (int $a_user_id=null) | |
toggleUser (bool $a_status, int $a_user_id=null) | |
Protected Attributes | |
const | VALUE_OFF = 0 |
const | VALUE_ON = 1 |
const | VALUE_BLOCKED = 2 |
const | MODE_SELF = 1 |
const | MODE_ALL = 2 |
const | MODE_ALL_BLOCKED = 3 |
const | MODE_CUSTOM = 4 |
int | $ref_id |
int | $mode |
array | $custom |
ilParticipants | $participants = null |
ilSetting | $setting |
ilDBInterface | $db |
ilTree | $tree |
ilObjUser | $user |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Membership notification settings
Definition at line 26 of file class.ilMembershipNotifications.php.
ilMembershipNotifications::__construct | ( | int | $a_ref_id | ) |
Definition at line 46 of file class.ilMembershipNotifications.php.
References $DIC, ILIAS\UI\examples\Chart\Bar\Horizontal\custom(), read(), setMode(), and ILIAS\Repository\user().
ilMembershipNotifications::activateUser | ( | int | $a_user_id = null | ) |
Definition at line 246 of file class.ilMembershipNotifications.php.
References toggleUser().
|
static |
Add notification settings to form.
PhpUndefinedVariableInspection
PhpUndefinedVariableInspection
Definition at line 411 of file class.ilMembershipNotifications.php.
References $DIC, $lng, ilSubEnabledFormPropertyGUI\addSubItem(), and ilFormPropertyGUI\setRequired().
Referenced by ilContainerNewsSettingsGUI\initForm(), and ilObjectServiceSettingsGUI\initServiceSettingsForm().
ilMembershipNotifications::canCurrentUserEdit | ( | ) |
Definition at line 337 of file class.ilMembershipNotifications.php.
References ANONYMOUS_USER_ID, ILIAS\UI\examples\Chart\Bar\Horizontal\custom(), getMode(), and ILIAS\Repository\user().
ilMembershipNotifications::cloneSettings | ( | int | $new_ref_id | ) |
Definition at line 527 of file class.ilMembershipNotifications.php.
ilMembershipNotifications::deactivateUser | ( | int | $a_user_id = null | ) |
Definition at line 251 of file class.ilMembershipNotifications.php.
References toggleUser().
ilMembershipNotifications::getActiveUsers | ( | ) |
Definition at line 192 of file class.ilMembershipNotifications.php.
References ILIAS\UI\examples\Chart\Bar\Horizontal\custom(), getMode(), getParticipants(), and ILIAS\Repository\int().
Referenced by isCurrentUserActive().
|
static |
Get active notifications for all objects.
Definition at line 361 of file class.ilMembershipNotifications.php.
References $DIC, $ilDB, $log, $ref_id, $res, ILIAS\Repository\int(), and ilTree\isDeleted().
Referenced by ilMembershipCronNotificationsData\load().
ilMembershipNotifications::getMode | ( | ) |
Definition at line 113 of file class.ilMembershipNotifications.php.
References $mode.
Referenced by canCurrentUserEdit(), getActiveUsers(), and toggleUser().
|
protected |
Definition at line 174 of file class.ilMembershipNotifications.php.
References $participants, ilCourseParticipants\_getInstanceByObjId(), ilGroupParticipants\_getInstanceByObjId(), and ilObject\_lookupObjId().
Referenced by getActiveUsers().
|
protected |
Definition at line 256 of file class.ilMembershipNotifications.php.
References $user, ANONYMOUS_USER_ID, ilObject\getId(), and ILIAS\Repository\user().
Referenced by toggleUser().
|
static |
Definition at line 484 of file class.ilMembershipNotifications.php.
References $DIC, $http, ILIAS\Repository\$refinery, and ILIAS\Repository\int().
Referenced by ilContainerNewsSettingsGUI\save(), and ilObjectServiceSettingsGUI\updateServiceSettingsForm().
|
static |
|
static |
Definition at line 74 of file class.ilMembershipNotifications.php.
References ilContainer\_lookupContainerSetting(), and ilObject\_lookupObjId().
Referenced by ilObjGroupGUI\initHeaderAction(), and ilObjCourseGUI\initHeaderAction().
ilMembershipNotifications::isCurrentUserActive | ( | ) |
Definition at line 332 of file class.ilMembershipNotifications.php.
References getActiveUsers(), and ILIAS\Repository\user().
|
protected |
Definition at line 125 of file class.ilMembershipNotifications.php.
References $valid.
Referenced by setMode(), and switchMode().
|
protected |
Definition at line 93 of file class.ilMembershipNotifications.php.
References ILIAS\UI\examples\Chart\Bar\Horizontal\custom(), ILIAS\Repository\int(), and setMode().
Referenced by __construct().
|
protected |
Definition at line 118 of file class.ilMembershipNotifications.php.
References isValidMode().
Referenced by __construct(), read(), and switchMode().
ilMembershipNotifications::switchMode | ( | int | $a_new_mode | ) |
Definition at line 137 of file class.ilMembershipNotifications.php.
References isValidMode(), and setMode().
|
protected |
Definition at line 276 of file class.ilMembershipNotifications.php.
References ILIAS\UI\examples\Chart\Bar\Horizontal\custom(), ilObject\getId(), getMode(), getUser(), ILIAS\Repository\int(), ilObjUser\setPref(), and ilObjUser\writePrefs().
Referenced by activateUser(), and deactivateUser().
|
protected |
Definition at line 39 of file class.ilMembershipNotifications.php.
|
protected |
Definition at line 42 of file class.ilMembershipNotifications.php.
|
protected |
Definition at line 37 of file class.ilMembershipNotifications.php.
Referenced by getMode().
|
protected |
Definition at line 40 of file class.ilMembershipNotifications.php.
Referenced by getParticipants().
|
protected |
Definition at line 36 of file class.ilMembershipNotifications.php.
Referenced by getActiveUsersforAllObjects().
|
protected |
Definition at line 41 of file class.ilMembershipNotifications.php.
|
protected |
Definition at line 43 of file class.ilMembershipNotifications.php.
|
protected |
Definition at line 44 of file class.ilMembershipNotifications.php.
Referenced by getUser().
|
protected |
Definition at line 32 of file class.ilMembershipNotifications.php.
|
protected |
Definition at line 33 of file class.ilMembershipNotifications.php.
|
protected |
Definition at line 34 of file class.ilMembershipNotifications.php.
|
protected |
Definition at line 31 of file class.ilMembershipNotifications.php.
|
protected |
Definition at line 30 of file class.ilMembershipNotifications.php.
|
protected |
Definition at line 28 of file class.ilMembershipNotifications.php.
|
protected |
Definition at line 29 of file class.ilMembershipNotifications.php.