ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
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.
Definition at line 34 of file class.ilBadgeAssignment.php.
References $DIC, read(), setBadgeId(), and setUserId().
|
static |
Definition at line 409 of file class.ilBadgeAssignment.php.
Referenced by ilBadgeProfileGUI\saveSettings().
ilBadgeAssignment::delete | ( | ) |
Definition at line 316 of file class.ilBadgeAssignment.php.
References $db, $ilDB, deleteStaticFiles(), getBadgeId(), and getUserId().
|
static |
Definition at line 339 of file class.ilBadgeAssignment.php.
Referenced by ilBadge\delete().
|
static |
Definition at line 346 of file class.ilBadgeAssignment.php.
|
static |
Definition at line 332 of file class.ilBadgeAssignment.php.
Referenced by ilObjUser\delete().
ilBadgeAssignment::deleteStaticFiles | ( | ) |
Definition at line 401 of file class.ilBadgeAssignment.php.
References $path, and ilBadgeHandler\getInstance().
Referenced by delete().
|
static |
Definition at line 189 of file class.ilBadgeAssignment.php.
Referenced by ilBadgeManagementGUI\assignBadge(), ilBadgeHandler\sendNotification(), and ilBadgeHandler\triggerEvaluation().
|
static |
Definition at line 177 of file class.ilBadgeAssignment.php.
References $res.
Referenced by ilBadgeManagementGUI\confirmDeassignBadge().
ilBadgeAssignment::getAwardedBy | ( | ) |
Definition at line 237 of file class.ilBadgeAssignment.php.
References $awarded_by.
Referenced by getPropertiesForStorage().
ilBadgeAssignment::getBadgeId | ( | ) |
Definition at line 207 of file class.ilBadgeAssignment.php.
References $badge_id.
Referenced by delete(), ilBadgeHandler\getInstancePath(), and store().
|
static |
Definition at line 378 of file class.ilBadgeAssignment.php.
References $DIC, $res, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
Referenced by ilBadgeLearningHistoryProvider\getEntries().
|
static |
Definition at line 125 of file class.ilBadgeAssignment.php.
References $DIC, $ilDB, and $res.
Referenced by ilBadgeManagementGUI\confirmDeleteBadges(), ilObjBadgeAdministrationGUI\confirmDeleteObjectBadges(), and ilBadgeWAC\isAssignedBadgeOfPublishedUserProfile().
|
static |
Definition at line 148 of file class.ilBadgeAssignment.php.
References $DIC, $ilDB, $res, and ilBadge\getInstancesByParentId().
Referenced by ILIAS\Badge\ilBadgeUserTableGUI\__construct().
|
static |
Definition at line 101 of file class.ilBadgeAssignment.php.
References $DIC, $ilDB, and $res.
Referenced by ilPublicUserProfileGUI\getEmbeddable(), ilBadgePersonalTableGUI\getRecords(), ilBadgeWAC\isAssignedBadge(), 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 247 of file class.ilBadgeAssignment.php.
References $pos.
Referenced by getPropertiesForStorage(), and ILIAS\Badge\Tile\profileButton().
|
protected |
Definition at line 285 of file class.ilBadgeAssignment.php.
References getAwardedBy(), getPosition(), and getTimestamp().
Referenced by store().
ilBadgeAssignment::getTimestamp | ( | ) |
Definition at line 227 of file class.ilBadgeAssignment.php.
References $tstamp.
Referenced by ILIAS\Badge\Tile\addAssignment(), and getPropertiesForStorage().
ilBadgeAssignment::getUserId | ( | ) |
Definition at line 217 of file class.ilBadgeAssignment.php.
References $user_id.
Referenced by delete(), ilBadgeHandler\getInstancePath(), and store().
|
protected |
Definition at line 257 of file class.ilBadgeAssignment.php.
References setAwardedBy(), setBadgeId(), setPosition(), setTimestamp(), and setUserId().
Referenced by read().
|
protected |
Definition at line 267 of file class.ilBadgeAssignment.php.
References $db, $ilDB, and importDBRow().
Referenced by __construct().
ilBadgeAssignment::setAwardedBy | ( | int | $a_id | ) |
Definition at line 232 of file class.ilBadgeAssignment.php.
Referenced by importDBRow().
|
protected |
Definition at line 202 of file class.ilBadgeAssignment.php.
Referenced by __construct(), and importDBRow().
ilBadgeAssignment::setPosition | ( | ?int | $a_value | ) |
Definition at line 242 of file class.ilBadgeAssignment.php.
Referenced by importDBRow().
|
protected |
Definition at line 222 of file class.ilBadgeAssignment.php.
Referenced by importDBRow().
|
protected |
Definition at line 212 of file class.ilBadgeAssignment.php.
Referenced by __construct(), and importDBRow().
ilBadgeAssignment::store | ( | ) |
Definition at line 294 of file class.ilBadgeAssignment.php.
References $db, $ilDB, getBadgeId(), getPropertiesForStorage(), and getUserId().
|
static |
Definition at line 353 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().