|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilBadgeHandler. More...
Collaboration diagram for ilBadgeHandler: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 |
Class ilBadgeHandler.
Definition at line 9 of file class.ilBadgeHandler.php.
|
protected |
Constructor.
Definition at line 35 of file class.ilBadgeHandler.php.
References $DIC, and settings().
Here is the call graph for this function:
|
static |
Remove component definition.
| string | $a_component_id |
Definition at line 332 of file class.ilBadgeHandler.php.
References getInstance().
Here is the call graph for this function:| ilBadgeHandler::countStaticBadgeInstances | ( | ilBadge | $a_badge | ) |
Definition at line 463 of file class.ilBadgeHandler.php.
References countStaticBadgeInstancesHelper(), getBasePath(), and ilBadge\getId().
Here is the call graph for this function:
|
protected |
Definition at line 473 of file class.ilBadgeHandler.php.
References countStaticBadgeInstancesHelper().
Referenced by countStaticBadgeInstances(), and countStaticBadgeInstancesHelper().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 284 of file class.ilBadgeHandler.php.
References $res, $type, ilObject\_lookupType(), getAvailableTypesForObjType(), getInstance(), and ilBadge\getInstancesByParentId().
Here is the call graph for this function:| ilBadgeHandler::getAvailableTypes | ( | ) |
Get badges types.
Definition at line 238 of file class.ilBadgeHandler.php.
References $res, $type, getComponents(), getInactiveTypes(), getProviderInstance(), and getUniqueTypeId().
Referenced by getAvailableTypesForObjType().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBadgeHandler::getAvailableTypesForObjType | ( | $a_object_type | ) |
Get valid badges types for object type.
| string | $a_object_type |
Definition at line 264 of file class.ilBadgeHandler.php.
References $res, $type, and getAvailableTypes().
Referenced by getAvailableManualBadges().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBadgeHandler::getBadgePath | ( | ilBadge | $a_badge | ) |
Definition at line 484 of file class.ilBadgeHandler.php.
References getBasePath(), ilBadge\getId(), and ilUtil\makeDirParents().
Here is the call graph for this function:
|
protected |
Definition at line 443 of file class.ilBadgeHandler.php.
References ilUtil\getWebspaceDir().
Referenced by countStaticBadgeInstances(), getBadgePath(), and getInstancePath().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 142 of file class.ilBadgeHandler.php.
Referenced by getComponentCaption(), and getProviderInstance().
Here is the caller graph for this function:| ilBadgeHandler::getComponentCaption | ( | $a_component_id | ) |
Definition at line 176 of file class.ilBadgeHandler.php.
References getComponent().
Here is the call graph for this function:| ilBadgeHandler::getComponents | ( | ) |
Definition at line 117 of file class.ilBadgeHandler.php.
References settings().
Referenced by getAvailableTypes().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBadgeHandler::getInactiveTypes | ( | ) |
Definition at line 213 of file class.ilBadgeHandler.php.
References settings().
Referenced by getAvailableTypes(), and triggerEvaluation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Constructor.
Definition at line 51 of file class.ilBadgeHandler.php.
References $instance.
Referenced by ilBadgePersonalTableGUI\__construct(), ilBadgeManagementGUI\__construct(), ilObjBadgeAdministrationGUI\activateTypes(), ilBadgeManagementGUI\addBadge(), ilBadgeProfileGUI\addToBackpack(), ilObjBadgeAdministrationGUI\assertActive(), ilBadgeManagementGUI\assignBadge(), ilBadgeManagementGUI\awardBadgeUserSelection(), clearFromXML(), ilObjBadgeAdministrationGUI\deactivateTypes(), ilBadge\deleteStaticFiles(), ilBadgeAssignment\deleteStaticFiles(), ilBadgeManagementGUI\editBadge(), ilBadgeProfileGUI\editSettings(), ilBadgeManagementGUI\executeCommand(), ilBadgePersonalTableGUI\fillRow(), ilObjBadgeAdministrationGUI\getAdminTabs(), getAvailableManualBadges(), ilBadgeAssignment\getImagePath(), ilBadgeUserTableGUI\getItems(), ilBadgeTypesTableGUI\getItems(), ilObjectBadgeTableGUI\getItems(), ILIAS\Badge\Provider\BadgeMainBarProvider\getStaticSubItems(), ilBadge\getStaticUrl(), ilBadgeAssignment\getStaticUrl(), ilBadgeProfileGUI\getSubTabs(), ilObjCourseGUI\getTabs(), ilObjGroupGUI\getTabs(), ilBadge\getTypeInstance(), ilBadgeManagementGUI\getValidBadgesFromClipboard(), ilBadgeAppEventListener\handleEvent(), ilBadgeTableGUI\initFilter(), ilObjectBadgeTableGUI\initFilter(), ilObjBadgeAdministrationGUI\initFormSettings(), ilObjBadgeAdministrationGUI\initImageTemplateForm(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ilAchievements\isActive(), ilBadgeLearningHistoryProvider\isActive(), ilBadgeProfileGUI\listBackpackGroups(), ilBadgeManagementGUI\listBadges(), ilBadgeManagementGUI\listUsers(), ilBadgeAssignment\prepareJson(), ilBadgeManagementGUI\saveBadge(), ilPersonalProfileGUI\savePublicProfile(), ilObjBadgeAdministrationGUI\saveSettings(), ilBadgeProfileGUI\setTabs(), ilPersonalProfileGUI\showPublicProfileFields(), updateFromXML(), and ilObjectServiceSettingsGUI\updateServiceSettingsForm().
Here is the caller graph for this function:| ilBadgeHandler::getInstancePath | ( | ilBadgeAssignment | $a_ass | ) |
Definition at line 448 of file class.ilBadgeHandler.php.
References ilBadgeAssignment\getBadgeId(), getBasePath(), ilBadgeAssignment\getUserId(), and ilUtil\makeDirParents().
Here is the call graph for this function:| ilBadgeHandler::getIssuerStaticUrl | ( | ) |
Definition at line 510 of file class.ilBadgeHandler.php.
References $url, ILIAS_HTTP_PATH, and ilUtil\makeDirParents().
Here is the call graph for this function:| ilBadgeHandler::getObiContact | ( | ) |
Definition at line 97 of file class.ilBadgeHandler.php.
References settings().
Here is the call graph for this function:| ilBadgeHandler::getObiOrganistation | ( | ) |
Definition at line 87 of file class.ilBadgeHandler.php.
References settings().
Here is the call graph for this function:| ilBadgeHandler::getObiSalt | ( | ) |
Definition at line 107 of file class.ilBadgeHandler.php.
References settings().
Here is the call graph for this function:| ilBadgeHandler::getProviderInstance | ( | $a_component_id | ) |
Get provider instance.
| string | $a_component_id |
Definition at line 161 of file class.ilBadgeHandler.php.
References getComponent().
Referenced by getAvailableTypes(), and getTypeInstanceByUniqueId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBadgeHandler::getTypeInstanceByUniqueId | ( | $a_id | ) |
Get type instance by unique id (component, type)
| string | $a_id |
Definition at line 198 of file class.ilBadgeHandler.php.
References $type, and getProviderInstance().
Referenced by triggerEvaluation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBadgeHandler::getUniqueTypeId | ( | $a_component_id, | |
| ilBadgeType | $a_badge | ||
| ) |
Definition at line 188 of file class.ilBadgeHandler.php.
References ilBadgeType\getId().
Referenced by getAvailableTypes().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBadgeHandler::getUserIds | ( | $a_parent_ref_id, | |
$a_parent_obj_id = null, |
|||
$a_parent_type = null |
|||
| ) |
Definition at line 403 of file class.ilBadgeHandler.php.
References $tree, $type, ilCourseParticipants\_getInstanceByObjId(), ilGroupParticipants\_getInstanceByObjId(), ilObject\_lookupObjectId(), and ilObject\_lookupType().
Here is the call graph for this function:| ilBadgeHandler::isActive | ( | ) |
Definition at line 64 of file class.ilBadgeHandler.php.
References settings().
Referenced by isObjectActive(), and triggerEvaluation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBadgeHandler::isObiActive | ( | ) |
Definition at line 74 of file class.ilBadgeHandler.php.
References settings().
Here is the call graph for this function:| ilBadgeHandler::isObjectActive | ( | $a_obj_id, | |
$a_obj_type = null |
|||
| ) |
Definition at line 349 of file class.ilBadgeHandler.php.
References ilContainer\_lookupContainerSetting(), ilObject\_lookupType(), ilObjectServiceSettingsGUI\BADGES, and isActive().
Here is the call graph for this function:
|
protected |
Definition at line 497 of file class.ilBadgeHandler.php.
| ilBadgeHandler::rebuildIssuerStaticUrl | ( | ) |
Definition at line 526 of file class.ilBadgeHandler.php.
| ilBadgeHandler::sendNotification | ( | array | $a_user_map, |
$a_parent_ref_id = null |
|||
| ) |
Definition at line 540 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBadgeHandler::setActive | ( | $a_value | ) |
Definition at line 69 of file class.ilBadgeHandler.php.
References settings().
Here is the call graph for this function:| ilBadgeHandler::setComponents | ( | array | $a_components = null | ) |
Definition at line 126 of file class.ilBadgeHandler.php.
References settings().
Here is the call graph for this function:| ilBadgeHandler::setInactiveTypes | ( | array | $a_types = null | ) |
Definition at line 222 of file class.ilBadgeHandler.php.
References settings().
Here is the call graph for this function:| ilBadgeHandler::setObiActive | ( | $a_value | ) |
Definition at line 82 of file class.ilBadgeHandler.php.
References settings().
Here is the call graph for this function:| ilBadgeHandler::setObiContact | ( | $a_value | ) |
Definition at line 102 of file class.ilBadgeHandler.php.
References settings().
Here is the call graph for this function:| ilBadgeHandler::setObiOrganisation | ( | $a_value | ) |
Definition at line 92 of file class.ilBadgeHandler.php.
References settings().
Here is the call graph for this function:| ilBadgeHandler::setObiSalt | ( | $a_value | ) |
Definition at line 112 of file class.ilBadgeHandler.php.
References settings().
Here is the call graph for this function:| ilBadgeHandler::triggerEvaluation | ( | $a_type_id, | |
| $a_user_id, | |||
| array | $a_params = null |
||
| ) |
Definition at line 372 of file class.ilBadgeHandler.php.
References $type, ilBadgeAssignment\exists(), getInactiveTypes(), ilBadge\getInstancesByType(), getTypeInstanceByUniqueId(), isActive(), and sendNotification().
Here is the call graph for this function:
|
static |
Import component definition.
| string | $a_component_id |
Definition at line 319 of file class.ilBadgeHandler.php.
References getInstance().
Referenced by ilObjDefReader\handlerBeginTag().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 14 of file class.ilBadgeHandler.php.
Referenced by getComponent().
|
staticprotected |
Definition at line 28 of file class.ilBadgeHandler.php.
Referenced by getInstance().
|
protected |
Definition at line 24 of file class.ilBadgeHandler.php.
|
protected |
Definition at line 26 of file class.ilBadgeHandler.php.
|
protected |
Definition at line 19 of file class.ilBadgeHandler.php.
Referenced by getUserIds().