4 require_once
"./Services/Badge/interfaces/interface.ilBadgeType.php";
5 require_once
"./Services/Badge/interfaces/interface.ilBadgeAuto.php";
25 return $lng->txt(
"badge_course_lp");
40 include_once
"Modules/Course/classes/Badges/class.ilCourseLPBadgeGUI.php";
46 $subitem_obj_ids =
array();
47 foreach($a_config[
"subitems"] as
$ref_id)
52 $trigger_subitem_id = $a_params[
"obj_id"];
55 if(in_array($trigger_subitem_id, $subitem_obj_ids))
60 foreach($a_config[
"subitems"] as $subitem_id)
62 $subitem_obj_id = $subitem_obj_ids[$subitem_id];
const LP_STATUS_COMPLETED_NUM
getConfigGUIInstance()
Get GUI config instance.
isSingleton()
Can only be created once?
static _lookupObjId($a_id)
getValidObjectTypes()
Get valid (repository) "parent" object types.
Create styles array
The data for the language used.
getId()
Get typ id (unique for component)
static _lookupStatus($a_obj_id, $a_user_id, $a_create=true)
Lookup status.
evaluate($a_user_id, array $a_params, array $a_config)
Evaluate if given user has earned badge.