19declare(strict_types=0);
45 ): UIStandardProgressMeter {
54 ): UIStandardProgressMeter {
57 $this->determinePercentage($lp_info)
64 ?
URI $title_link =
null
67 foreach ($property_list as $property) {
68 $properties[$property_list->
key()] = $property;
70 $icon = $this->
ui->factory()->symbol()->icon()->standard(
72 $object_info->
getType() .
" Icon",
76 if ($title_link !==
null) {
77 $title = $this->
ui->factory()->link()->standard($title, (
string) $title_link);
79 return $this->
ui->factory()->item()->standard($title)
80 ->withProperties($properties)
82 ->withLeadIcon($icon);
88 $percentage = $lp_info->getPercentage();
90 return !$lp_info->
hasPercentage() ? $percentage_by_status : $percentage;
Provides fluid interface to RBAC services.
The scope of this class is split ilias-conform URI's into components.
standardProgressMeter(LPInterface $lp_info)
__construct(protected UIServices $ui)
fixedSizeProgressMeter(LPInterface $lp_info)
standardItem(ObjectDataInterface $object_info, PropertyListInterface $property_list, ?URI $title_link=null)
The optional link is applied to the title.
determinePercentage(LPInterface $lp_info)
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
const LP_STATUS_COMPLETED_NUM
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This describes a Standard Dropdown.
This describes how an icon could be modified during construction of UI.
This describes the specific behavior of an ILIAS standard icon.