ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($a_badge_id=null, $a_user_id=null) | |
getBadgeId () | |
getUserId () | |
getTimestamp () | |
setAwardedBy ($a_id) | |
getAwardedBy () | |
setPosition ($a_value) | |
getPosition () | |
store () | |
delete () | |
getImagePath (ilBadge $a_badge) | |
getStaticUrl () | |
deleteStaticFiles () | |
Static Public Member Functions | |
static | getInstancesByUserId ($a_user_id) |
static | getInstancesByBadgeId ($a_badge_id) |
static | getInstancesByParentId ($a_parent_obj_id) |
static | getAssignedUsers ($a_badge_id) |
static | exists ($a_badge_id, $a_user_id) |
static | deleteByUserId ($a_user_id) |
static | deleteByBadgeId ($a_badge_id) |
static | deleteByParentId ($a_parent_obj_id) |
static | updatePositions ($a_user_id, array $a_positions) |
static | getBadgesForUser ($a_user_id, $a_ts_from, $a_ts_to) |
Get badges for user. More... | |
static | clearBadgeCache ($a_user_id) |
Protected Member Functions | |
setBadgeId ($a_value) | |
setUserId ($a_value) | |
setTimestamp ($a_value) | |
importDBRow (array $a_row) | |
read ($a_badge_id, $a_user_id) | |
getPropertiesForStorage () | |
prepareJson ($a_url) | |
bakeImage ($a_baked_image_path, $a_badge_image_path, $a_assertion_url) | |
Protected Attributes | |
$db | |
$badge_id | |
$user_id | |
$tstamp | |
$awarded_by | |
$pos | |
$stored | |
Definition at line 12 of file class.ilBadgeAssignment.php.
ilBadgeAssignment::__construct | ( | $a_badge_id = null , |
|
$a_user_id = null |
|||
) |
Definition at line 26 of file class.ilBadgeAssignment.php.
References $DIC, read(), setBadgeId(), and setUserId().
|
protected |
Definition at line 390 of file class.ilBadgeAssignment.php.
Referenced by prepareJson().
|
static |
Definition at line 455 of file class.ilBadgeAssignment.php.
Referenced by ilBadgeProfileGUI\saveSettings().
ilBadgeAssignment::delete | ( | ) |
Definition at line 238 of file class.ilBadgeAssignment.php.
References $db, $ilDB, deleteStaticFiles(), getBadgeId(), and getUserId().
|
static |
Definition at line 261 of file class.ilBadgeAssignment.php.
Referenced by ilBadge\delete().
|
static |
Definition at line 268 of file class.ilBadgeAssignment.php.
|
static |
Definition at line 254 of file class.ilBadgeAssignment.php.
Referenced by ilObjUser\delete().
ilBadgeAssignment::deleteStaticFiles | ( | ) |
Definition at line 446 of file class.ilBadgeAssignment.php.
References $path, and ilBadgeHandler\getInstance().
Referenced by delete().
|
static |
Definition at line 115 of file class.ilBadgeAssignment.php.
Referenced by ilBadgeManagementGUI\assignBadge(), ilBadgeHandler\sendNotification(), and ilBadgeHandler\triggerEvaluation().
|
static |
Definition at line 104 of file class.ilBadgeAssignment.php.
References $res.
Referenced by ilBadgeManagementGUI\confirmDeassignBadge().
ilBadgeAssignment::getAwardedBy | ( | ) |
Definition at line 161 of file class.ilBadgeAssignment.php.
References $awarded_by.
Referenced by getPropertiesForStorage().
ilBadgeAssignment::getBadgeId | ( | ) |
Definition at line 131 of file class.ilBadgeAssignment.php.
References $badge_id.
Referenced by delete(), ilBadgeHandler\getInstancePath(), prepareJson(), and store().
|
static |
Get badges for user.
int | $a_user_id | |
int | $a_ts_from | |
int | $a_ts_to |
Definition at line 303 of file class.ilBadgeAssignment.php.
References $db, $DIC, and $res.
Referenced by ilBadgeLearningHistoryProvider\getEntries().
ilBadgeAssignment::getImagePath | ( | ilBadge | $a_badge | ) |
Definition at line 379 of file class.ilBadgeAssignment.php.
References ilBadge\getImagePath(), and ilBadgeHandler\getInstance().
Referenced by prepareJson().
|
static |
Definition at line 60 of file class.ilBadgeAssignment.php.
References $DIC, $ilDB, $res, and $row.
Referenced by ilBadgeManagementGUI\confirmDeleteBadges(), and ilObjBadgeAdministrationGUI\confirmDeleteObjectBadges().
|
static |
Definition at line 79 of file class.ilBadgeAssignment.php.
References $DIC, $ilDB, $res, $row, and ilBadge\getInstancesByParentId().
Referenced by ilBadgeUserTableGUI\getItems().
|
static |
Definition at line 40 of file class.ilBadgeAssignment.php.
References $DIC, $ilDB, $res, and $row.
Referenced by ilPublicUserProfileGUI\getEmbeddable(), ilBadgePersonalTableGUI\getItems(), ilBadgeProfileGUI\listBadges(), and ilPersonalProfileGUI\showPublicProfileFields().
ilBadgeAssignment::getPosition | ( | ) |
Definition at line 174 of file class.ilBadgeAssignment.php.
References $pos.
Referenced by getPropertiesForStorage().
|
protected |
Definition at line 207 of file class.ilBadgeAssignment.php.
References getAwardedBy(), getPosition(), and getTimestamp().
Referenced by store().
ilBadgeAssignment::getStaticUrl | ( | ) |
Definition at line 431 of file class.ilBadgeAssignment.php.
References $path, $url, ilBadgeHandler\getInstance(), and prepareJson().
ilBadgeAssignment::getTimestamp | ( | ) |
Definition at line 151 of file class.ilBadgeAssignment.php.
References $tstamp.
Referenced by getPropertiesForStorage(), and prepareJson().
ilBadgeAssignment::getUserId | ( | ) |
Definition at line 141 of file class.ilBadgeAssignment.php.
References $user_id.
Referenced by delete(), ilBadgeHandler\getInstancePath(), prepareJson(), and store().
|
protected |
Definition at line 184 of file class.ilBadgeAssignment.php.
References setAwardedBy(), setBadgeId(), setPosition(), setTimestamp(), and setUserId().
Referenced by read().
|
protected |
Definition at line 328 of file class.ilBadgeAssignment.php.
References $user, ilBadgeProfileGUI\BACKPACK_EMAIL, bakeImage(), getBadgeId(), getImagePath(), ilBadgeHandler\getInstance(), getTimestamp(), getUserId(), and GuzzleHttp\Psr7\hash().
Referenced by getStaticUrl().
|
protected |
Definition at line 194 of file class.ilBadgeAssignment.php.
References $db, $ilDB, $row, and importDBRow().
Referenced by __construct().
ilBadgeAssignment::setAwardedBy | ( | $a_id | ) |
Definition at line 156 of file class.ilBadgeAssignment.php.
Referenced by importDBRow().
|
protected |
Definition at line 126 of file class.ilBadgeAssignment.php.
Referenced by __construct(), and importDBRow().
ilBadgeAssignment::setPosition | ( | $a_value | ) |
Definition at line 166 of file class.ilBadgeAssignment.php.
Referenced by importDBRow().
|
protected |
Definition at line 146 of file class.ilBadgeAssignment.php.
Referenced by importDBRow().
|
protected |
Definition at line 136 of file class.ilBadgeAssignment.php.
Referenced by __construct(), and importDBRow().
ilBadgeAssignment::store | ( | ) |
Definition at line 216 of file class.ilBadgeAssignment.php.
References $db, $ilDB, $keys, getBadgeId(), getPropertiesForStorage(), and getUserId().
Referenced by ilBadgeHandler\triggerEvaluation().
|
static |
Definition at line 275 of file class.ilBadgeAssignment.php.
Referenced by ilPersonalProfileGUI\savePublicProfile().
|
protected |
Definition at line 22 of file class.ilBadgeAssignment.php.
Referenced by getAwardedBy().
|
protected |
Definition at line 19 of file class.ilBadgeAssignment.php.
Referenced by getBadgeId().
|
protected |
Definition at line 17 of file class.ilBadgeAssignment.php.
Referenced by delete(), getBadgesForUser(), read(), and store().
|
protected |
Definition at line 23 of file class.ilBadgeAssignment.php.
Referenced by getPosition().
|
protected |
Definition at line 24 of file class.ilBadgeAssignment.php.
|
protected |
Definition at line 21 of file class.ilBadgeAssignment.php.
Referenced by getTimestamp().
|
protected |
Definition at line 20 of file class.ilBadgeAssignment.php.
Referenced by getUserId().