ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
isActive () | |
setActive ($a_value) | |
isObiActive () | |
setObiActive ($a_value) | |
getObiOrganistation () | |
setObiOrganisation ($a_value) | |
getObiContact () | |
setObiContact ($a_value) | |
getObiSalt () | |
setObiSalt ($a_value) | |
getComponents () | |
setComponents (array $a_components=null) | |
getProviderInstance ($a_component_id) | |
Get provider instance. More... | |
getComponentCaption ($a_component_id) | |
getUniqueTypeId ($a_component_id, ilBadgeType $a_badge) | |
getTypeInstanceByUniqueId ($a_id) | |
Get type instance by unique id (component, type) More... | |
getInactiveTypes () | |
setInactiveTypes (array $a_types=null) | |
getAvailableTypes () | |
Get badges types. More... | |
getAvailableTypesForObjType ($a_object_type) | |
Get valid badges types for object type. More... | |
getAvailableManualBadges ($a_parent_obj_id, $a_parent_obj_type=null) | |
Get available manual badges for object id. More... | |
isObjectActive ($a_obj_id, $a_obj_type=null) | |
triggerEvaluation ($a_type_id, $a_user_id, array $a_params=null) | |
getUserIds ($a_parent_ref_id, $a_parent_obj_id=null, $a_parent_type=null) | |
getInstancePath (ilBadgeAssignment $a_ass) | |
countStaticBadgeInstances (ilBadge $a_badge) | |
getBadgePath (ilBadge $a_badge) | |
getIssuerStaticUrl () | |
rebuildIssuerStaticUrl () | |
sendNotification (array $a_user_map, $a_parent_ref_id=null) | |
Static Public Member Functions | |
static | getInstance () |
Constructor. More... | |
static | updateFromXML ($a_component_id) |
Import component definition. More... | |
static | clearFromXML ($a_component_id) |
Remove component definition. More... | |
Protected Member Functions | |
__construct () | |
Constructor. More... | |
getComponent ($a_id) | |
getBasePath () | |
countStaticBadgeInstancesHelper (&$a_cnt, $a_path) | |
prepareIssuerJson ($a_url) | |
Protected Attributes | |
$db | |
$tree | |
$lng | |
$settings | |
Static Protected Attributes | |
static | $instance |
Definition at line 12 of file class.ilBadgeHandler.php.
|
protected |
Constructor.
Definition at line 38 of file class.ilBadgeHandler.php.
References $DIC, and settings().
|
static |
Remove component definition.
string | $a_component_id |
Definition at line 337 of file class.ilBadgeHandler.php.
References $handler.
ilBadgeHandler::countStaticBadgeInstances | ( | ilBadge | $a_badge | ) |
Definition at line 474 of file class.ilBadgeHandler.php.
References $path, countStaticBadgeInstancesHelper(), getBasePath(), and ilBadge\getId().
|
protected |
Definition at line 484 of file class.ilBadgeHandler.php.
Referenced by countStaticBadgeInstances().
ilBadgeHandler::getAvailableManualBadges | ( | $a_parent_obj_id, | |
$a_parent_obj_type = null |
|||
) |
Get available manual badges for object id.
int | $a_parent_obj_id | |
string | $a_parent_obj_type |
Definition at line 288 of file class.ilBadgeHandler.php.
References $res, $type, ilObject\_lookupType(), getAvailableTypesForObjType(), getInstance(), and ilBadge\getInstancesByParentId().
ilBadgeHandler::getAvailableTypes | ( | ) |
Get badges types.
Definition at line 242 of file class.ilBadgeHandler.php.
References $id, PHPMailer\PHPMailer\$provider, $res, $type, getComponents(), getInactiveTypes(), getProviderInstance(), and getUniqueTypeId().
Referenced by getAvailableTypesForObjType().
ilBadgeHandler::getAvailableTypesForObjType | ( | $a_object_type | ) |
Get valid badges types for object type.
string | $a_object_type |
Definition at line 268 of file class.ilBadgeHandler.php.
References $id, $res, $type, and getAvailableTypes().
Referenced by getAvailableManualBadges().
ilBadgeHandler::getBadgePath | ( | ilBadge | $a_badge | ) |
Definition at line 495 of file class.ilBadgeHandler.php.
References $path, getBasePath(), ilBadge\getId(), and ilUtil\makeDirParents().
|
protected |
Definition at line 454 of file class.ilBadgeHandler.php.
References ilUtil\getWebspaceDir().
Referenced by countStaticBadgeInstances(), getBadgePath(), getInstancePath(), getIssuerStaticUrl(), and rebuildIssuerStaticUrl().
|
protected |
Definition at line 145 of file class.ilBadgeHandler.php.
Referenced by getComponentCaption(), and getProviderInstance().
ilBadgeHandler::getComponentCaption | ( | $a_component_id | ) |
Definition at line 180 of file class.ilBadgeHandler.php.
References getComponent().
ilBadgeHandler::getComponents | ( | ) |
Definition at line 120 of file class.ilBadgeHandler.php.
References settings().
Referenced by getAvailableTypes().
ilBadgeHandler::getInactiveTypes | ( | ) |
Definition at line 217 of file class.ilBadgeHandler.php.
References settings().
Referenced by getAvailableTypes(), and triggerEvaluation().
|
static |
Constructor.
Definition at line 54 of file class.ilBadgeHandler.php.
Referenced by ilBadgePersonalTableGUI\__construct(), ilBadgeManagementGUI\__construct(), ilObjBadgeAdministrationGUI\activateTypes(), ilBadgeManagementGUI\addBadge(), ilBadgeProfileGUI\addToBackpack(), ilObjBadgeAdministrationGUI\assertActive(), ilBadgeManagementGUI\assignBadge(), ilBadgeManagementGUI\awardBadgeUserSelection(), ilObjBadgeAdministrationGUI\deactivateTypes(), ilBadgeAssignment\deleteStaticFiles(), ilBadge\deleteStaticFiles(), ilBadgeManagementGUI\editBadge(), ilBadgeProfileGUI\editSettings(), ilBadgeManagementGUI\executeCommand(), ilBadgePersonalTableGUI\fillRow(), ilObjBadgeAdministrationGUI\getAdminTabs(), getAvailableManualBadges(), ilBadgeAssignment\getImagePath(), ilBadgeTypesTableGUI\getItems(), ilObjectBadgeTableGUI\getItems(), ilBadgeUserTableGUI\getItems(), ilBadgeAssignment\getStaticUrl(), ilBadge\getStaticUrl(), ilBadgeProfileGUI\getSubTabs(), ilObjGroupGUI\getTabs(), ilObjCourseGUI\getTabs(), ilBadge\getTypeInstance(), ilBadgeManagementGUI\getValidBadgesFromClipboard(), ilBadgeAppEventListener\handleEvent(), ilBadgeTableGUI\initFilter(), ilObjectBadgeTableGUI\initFilter(), ilObjBadgeAdministrationGUI\initFormSettings(), ilObjBadgeAdministrationGUI\initImageTemplateForm(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ilBadgeLearningHistoryProvider\isActive(), ilAchievements\isActive(), ilBadgeProfileGUI\listBackpackGroups(), ilBadgeManagementGUI\listBadges(), ilBadgeManagementGUI\listUsers(), ilBadgeAssignment\prepareJson(), ilBadge\prepareJson(), ilBadgeManagementGUI\saveBadge(), ilPersonalProfileGUI\savePublicProfile(), ilObjBadgeAdministrationGUI\saveSettings(), ilBadgeProfileGUI\setTabs(), ilPersonalProfileGUI\showPublicProfileFields(), and ilObjectServiceSettingsGUI\updateServiceSettingsForm().
ilBadgeHandler::getInstancePath | ( | ilBadgeAssignment | $a_ass | ) |
Definition at line 459 of file class.ilBadgeHandler.php.
References $path, ilBadgeAssignment\getBadgeId(), getBasePath(), ilBadgeAssignment\getUserId(), and ilUtil\makeDirParents().
ilBadgeHandler::getIssuerStaticUrl | ( | ) |
Definition at line 521 of file class.ilBadgeHandler.php.
References $path, $url, getBasePath(), ilUtil\makeDirParents(), and prepareIssuerJson().
Referenced by rebuildIssuerStaticUrl().
ilBadgeHandler::getObiContact | ( | ) |
Definition at line 100 of file class.ilBadgeHandler.php.
References settings().
Referenced by prepareIssuerJson().
ilBadgeHandler::getObiOrganistation | ( | ) |
Definition at line 90 of file class.ilBadgeHandler.php.
References settings().
Referenced by prepareIssuerJson().
ilBadgeHandler::getObiSalt | ( | ) |
Definition at line 110 of file class.ilBadgeHandler.php.
References settings().
ilBadgeHandler::getProviderInstance | ( | $a_component_id | ) |
Get provider instance.
string | $a_component_id |
Definition at line 164 of file class.ilBadgeHandler.php.
References getComponent().
Referenced by getAvailableTypes(), and getTypeInstanceByUniqueId().
ilBadgeHandler::getTypeInstanceByUniqueId | ( | $a_id | ) |
Get type instance by unique id (component, type)
string | $a_id |
Definition at line 202 of file class.ilBadgeHandler.php.
References PHPMailer\PHPMailer\$provider, $type, and getProviderInstance().
Referenced by triggerEvaluation().
ilBadgeHandler::getUniqueTypeId | ( | $a_component_id, | |
ilBadgeType | $a_badge | ||
) |
Definition at line 192 of file class.ilBadgeHandler.php.
References ilBadgeType\getId().
Referenced by getAvailableTypes().
ilBadgeHandler::getUserIds | ( | $a_parent_ref_id, | |
$a_parent_obj_id = null , |
|||
$a_parent_type = null |
|||
) |
Definition at line 412 of file class.ilBadgeHandler.php.
References $path, $tree, $type, ilGroupParticipants\_getInstanceByObjId(), ilCourseParticipants\_getInstanceByObjId(), ilObject\_lookupObjectId(), and ilObject\_lookupType().
ilBadgeHandler::isActive | ( | ) |
Definition at line 67 of file class.ilBadgeHandler.php.
References settings().
Referenced by isObjectActive(), and triggerEvaluation().
ilBadgeHandler::isObiActive | ( | ) |
Definition at line 77 of file class.ilBadgeHandler.php.
References settings().
ilBadgeHandler::isObjectActive | ( | $a_obj_id, | |
$a_obj_type = null |
|||
) |
Definition at line 354 of file class.ilBadgeHandler.php.
References ilContainer\_lookupContainerSetting(), ilObject\_lookupType(), ilObjectServiceSettingsGUI\BADGES, and isActive().
|
protected |
Definition at line 508 of file class.ilBadgeHandler.php.
References getObiContact(), and getObiOrganistation().
Referenced by getIssuerStaticUrl().
ilBadgeHandler::rebuildIssuerStaticUrl | ( | ) |
Definition at line 537 of file class.ilBadgeHandler.php.
References $path, getBasePath(), and getIssuerStaticUrl().
ilBadgeHandler::sendNotification | ( | array | $a_user_map, |
$a_parent_ref_id = null |
|||
) |
Definition at line 551 of file class.ilBadgeHandler.php.
References $lng, $url, ilLink\_getLink(), ilObjUser\_lookupEmail(), ilNotificationConfig\DEFAULT_TTS, ilBadgeAssignment\exists(), ilUtil\getImagePath(), ilContext\hasHTML(), and ilNotificationConfig\TTL_SHORT.
Referenced by triggerEvaluation().
ilBadgeHandler::setActive | ( | $a_value | ) |
Definition at line 72 of file class.ilBadgeHandler.php.
References settings().
ilBadgeHandler::setComponents | ( | array | $a_components = null | ) |
Definition at line 129 of file class.ilBadgeHandler.php.
References settings().
ilBadgeHandler::setInactiveTypes | ( | array | $a_types = null | ) |
Definition at line 226 of file class.ilBadgeHandler.php.
References settings().
ilBadgeHandler::setObiActive | ( | $a_value | ) |
Definition at line 85 of file class.ilBadgeHandler.php.
References settings().
ilBadgeHandler::setObiContact | ( | $a_value | ) |
Definition at line 105 of file class.ilBadgeHandler.php.
References settings().
ilBadgeHandler::setObiOrganisation | ( | $a_value | ) |
Definition at line 95 of file class.ilBadgeHandler.php.
References settings().
ilBadgeHandler::setObiSalt | ( | $a_value | ) |
Definition at line 115 of file class.ilBadgeHandler.php.
References settings().
ilBadgeHandler::triggerEvaluation | ( | $a_type_id, | |
$a_user_id, | |||
array | $a_params = null |
||
) |
Definition at line 379 of file class.ilBadgeHandler.php.
References $type, ilBadgeAssignment\exists(), getInactiveTypes(), ilBadge\getInstancesByType(), getTypeInstanceByUniqueId(), isActive(), sendNotification(), and ilBadgeAssignment\store().
|
static |
Import component definition.
string | $a_component_id |
Definition at line 324 of file class.ilBadgeHandler.php.
References $handler.
Referenced by ilObjDefReader\handlerBeginTag().
|
protected |
Definition at line 17 of file class.ilBadgeHandler.php.
Referenced by getComponent().
|
staticprotected |
Definition at line 31 of file class.ilBadgeHandler.php.
|
protected |
Definition at line 27 of file class.ilBadgeHandler.php.
Referenced by sendNotification().
|
protected |
Definition at line 29 of file class.ilBadgeHandler.php.
|
protected |
Definition at line 22 of file class.ilBadgeHandler.php.
Referenced by getUserIds().