ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
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_badge_id=null, int $a_user_id=null) | |
getBadgeId () | |
getUserId () | |
getTimestamp () | |
setAwardedBy (int $a_id) | |
getAwardedBy () | |
setPosition (?int $a_value) | |
getPosition () | |
store () | |
delete () | |
deleteStaticFiles () | |
Static Public Member Functions | |
static | getNewCounter (int $a_user_id) |
static | getLatestTimestamp (int $a_user_id) |
static | getInstancesByUserId (int $a_user_id) |
static | getInstancesByBadgeId (int $a_badge_id) |
static | getInstancesByParentId (int $a_parent_obj_id) |
static | getAssignedUsers (int $a_badge_id) |
static | exists (int $a_badge_id, int $a_user_id) |
static | deleteByUserId (int $a_user_id) |
static | deleteByBadgeId (int $a_badge_id) |
static | deleteByParentId (int $a_parent_obj_id) |
static | updatePositions (int $a_user_id, array $a_positions) |
static | getBadgesForUser (int $a_user_id, int $a_ts_from, int $a_ts_to) |
static | clearBadgeCache (int $a_user_id) |
Protected Member Functions | |
setBadgeId (int $a_value) | |
setUserId (int $a_value) | |
setTimestamp (int $a_value) | |
importDBRow (array $a_row) | |
read (int $a_badge_id, int $a_user_id) | |
getPropertiesForStorage () | |
Protected Attributes | |
ilDBInterface | $db |
int | $badge_id = 0 |
int | $user_id = 0 |
int | $tstamp = 0 |
int | $awarded_by = 0 |
int | $pos = null |
bool | $stored = false |
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 Class ilBadgeAssignment
Definition at line 24 of file class.ilBadgeAssignment.php.
ilBadgeAssignment::__construct | ( | int | $a_badge_id = null , |
int | $a_user_id = null |
||
) |
Definition at line 34 of file class.ilBadgeAssignment.php.
References $DIC, read(), setBadgeId(), and setUserId().
|
static |
Definition at line 416 of file class.ilBadgeAssignment.php.
Referenced by ilBadgeProfileGUI\saveSettings().
ilBadgeAssignment::delete | ( | ) |
Definition at line 320 of file class.ilBadgeAssignment.php.
References $db, $ilDB, deleteStaticFiles(), getBadgeId(), and getUserId().
|
static |
Definition at line 343 of file class.ilBadgeAssignment.php.
Referenced by ilBadge\delete().
|
static |
Definition at line 350 of file class.ilBadgeAssignment.php.
|
static |
Definition at line 336 of file class.ilBadgeAssignment.php.
Referenced by ilObjUser\delete().
ilBadgeAssignment::deleteStaticFiles | ( | ) |
Definition at line 408 of file class.ilBadgeAssignment.php.
References $path, and ilBadgeHandler\getInstance().
Referenced by delete().
|
static |
Definition at line 193 of file class.ilBadgeAssignment.php.
Referenced by ilBadgeManagementGUI\assignBadge(), ilBadgeHandler\sendNotification(), and ilBadgeHandler\triggerEvaluation().
|
static |
int | $a_badge_id |
Definition at line 181 of file class.ilBadgeAssignment.php.
References $res.
Referenced by ilBadgeManagementGUI\confirmDeassignBadge().
ilBadgeAssignment::getAwardedBy | ( | ) |
Definition at line 241 of file class.ilBadgeAssignment.php.
References $awarded_by.
Referenced by getPropertiesForStorage().
ilBadgeAssignment::getBadgeId | ( | ) |
Definition at line 211 of file class.ilBadgeAssignment.php.
References $badge_id.
Referenced by delete(), ilBadgeHandler\getInstancePath(), and store().
|
static |
int | $a_user_id | |
int | $a_ts_from | |
int | $a_ts_to |
Definition at line 385 of file class.ilBadgeAssignment.php.
References $DIC, $res, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
Referenced by ilBadgeLearningHistoryProvider\getEntries().
|
static |
int | $a_badge_id |
Definition at line 127 of file class.ilBadgeAssignment.php.
References $DIC, $ilDB, and $res.
Referenced by ilBadgeManagementGUI\confirmDeleteBadges(), ilObjBadgeAdministrationGUI\confirmDeleteObjectBadges(), and ilBadgeWAC\isAssignedBadgeOfPublishedUserProfile().
|
static |
int | $a_parent_obj_id |
Definition at line 151 of file class.ilBadgeAssignment.php.
References $DIC, $ilDB, $res, and ilBadge\getInstancesByParentId().
Referenced by ilBadgeUserTableGUI\getItems().
|
static |
int | $a_user_id |
Definition at line 102 of file class.ilBadgeAssignment.php.
References $DIC, $ilDB, and $res.
Referenced by ilPublicUserProfileGUI\getEmbeddable(), ilBadgePersonalTableGUI\getItems(), ilBadgeWAC\isAssignedBadge(), ilBadgeProfileGUI\listBadges(), and ilPersonalProfileGUI\showPublicProfileFields().
|
static |
Definition at line 81 of file class.ilBadgeAssignment.php.
References $DIC, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
|
static |
Definition at line 50 of file class.ilBadgeAssignment.php.
References $DIC, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
ilBadgeAssignment::getPosition | ( | ) |
Definition at line 251 of file class.ilBadgeAssignment.php.
References $pos.
Referenced by getPropertiesForStorage().
|
protected |
Definition at line 289 of file class.ilBadgeAssignment.php.
References getAwardedBy(), getPosition(), and getTimestamp().
Referenced by store().
ilBadgeAssignment::getTimestamp | ( | ) |
Definition at line 231 of file class.ilBadgeAssignment.php.
References $tstamp.
Referenced by getPropertiesForStorage().
ilBadgeAssignment::getUserId | ( | ) |
Definition at line 221 of file class.ilBadgeAssignment.php.
References $user_id.
Referenced by delete(), ilBadgeHandler\getInstancePath(), and store().
|
protected |
Definition at line 261 of file class.ilBadgeAssignment.php.
References setAwardedBy(), setBadgeId(), setPosition(), setTimestamp(), and setUserId().
Referenced by read().
|
protected |
Definition at line 271 of file class.ilBadgeAssignment.php.
References $db, $ilDB, and importDBRow().
Referenced by __construct().
ilBadgeAssignment::setAwardedBy | ( | int | $a_id | ) |
Definition at line 236 of file class.ilBadgeAssignment.php.
Referenced by importDBRow().
|
protected |
Definition at line 206 of file class.ilBadgeAssignment.php.
Referenced by __construct(), and importDBRow().
ilBadgeAssignment::setPosition | ( | ?int | $a_value | ) |
Definition at line 246 of file class.ilBadgeAssignment.php.
Referenced by importDBRow().
|
protected |
Definition at line 226 of file class.ilBadgeAssignment.php.
Referenced by importDBRow().
|
protected |
Definition at line 216 of file class.ilBadgeAssignment.php.
Referenced by __construct(), and importDBRow().
ilBadgeAssignment::store | ( | ) |
Definition at line 298 of file class.ilBadgeAssignment.php.
References $db, $ilDB, $keys, getBadgeId(), getPropertiesForStorage(), and getUserId().
Referenced by ilBadgeHandler\triggerEvaluation().
|
static |
Definition at line 357 of file class.ilBadgeAssignment.php.
References $id.
Referenced by ilPersonalProfileGUI\savePublicProfile().
|
protected |
Definition at line 30 of file class.ilBadgeAssignment.php.
Referenced by getAwardedBy().
|
protected |
Definition at line 27 of file class.ilBadgeAssignment.php.
Referenced by getBadgeId().
|
protected |
Definition at line 26 of file class.ilBadgeAssignment.php.
|
protected |
Definition at line 31 of file class.ilBadgeAssignment.php.
Referenced by getPosition().
|
protected |
Definition at line 32 of file class.ilBadgeAssignment.php.
|
protected |
Definition at line 29 of file class.ilBadgeAssignment.php.
Referenced by getTimestamp().
|
protected |
Definition at line 28 of file class.ilBadgeAssignment.php.
Referenced by getUserId().