3 declare(strict_types=1);
    39         return $lng->txt(
'badge_course_lp');
    60     public function evaluate(
int $a_user_id, array $a_params, ?array $a_config): bool
    62         $subitem_obj_ids = [];
    64         if ($a_config !== null && isset($a_config[
'subitems'])) {
    65             foreach ($a_config[
'subitems'] as 
$ref_id) {
    70         $trigger_subitem_id = $a_params[
'obj_id'];
    73         if (in_array($trigger_subitem_id, $subitem_obj_ids)) {
    77             if ($a_config !== null && isset($a_config[
'subitems'])) {
    78                 foreach ($a_config[
'subitems'] as $subitem_id) {
    79                     $subitem_obj_id = $subitem_obj_ids[$subitem_id];
 const LP_STATUS_COMPLETED_NUM
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getConfigGUIInstance()
Get GUI config instance. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
isSingleton()
Can only be created once? 
 
static _lookupObjId(int $ref_id)
 
evaluate(int $a_user_id, array $a_params, ?array $a_config)
Evaluate if given user has earned badge. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupStatus(int $a_obj_id, int $a_user_id, bool $a_create=true)
Lookup status. 
 
getId()
Get typ id (unique for component)