19 declare(strict_types=1);
37 $view_factory =
new ViewFactory();
38 $this->data_retrieval = $view_factory->dataRetrieval();
39 $this->tracking_renderer = $view_factory->renderer()->service();
41 $this->
lng->loadLanguageModule(
'trac');
44 $this->
setTitle($this->
lng->txt(
'trac_progress_block_title'));
60 $filter = $this->data_retrieval
63 ->withUserIds($this->
user->getId());
64 $lp_info = $this->data_retrieval
66 ->retrieveViewInfo($filter)
70 $status = $lp_info->getLPStatus();
72 $progress = $this->tracking_renderer->fixedSizeProgressMeter($lp_info);
73 $mode_and_status = $this->
ui->factory()->item()->standard(
76 $this->
lng->txt(
'trac_mode_collection')
79 return $this->
ui->renderer()->render([
ilLPProgressBlockGUI: ilColumnGUI
setBlockId(string $a_block_id="0")
RendererInterface $tracking_renderer
static _lookupObjectId(int $ref_id)
static _getStatusText(int $a_status, ?ilLanguage $a_lng=null)
Get status alt text.
DataRetrievalFactoryInterface $data_retrieval
__construct(Container $dic, ilPlugin $plugin)
setTitle(string $a_title)
This class represents a block method of a block.
setPresentation(int $type)