ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\User\Profile\ChecklistGUI Class Reference
+ Collaboration diagram for ILIAS\User\Profile\ChecklistGUI:

Public Member Functions

 render (int $active_step)
 

Protected Member Functions

 getUIChecklistStatus (int $check_list_status)
 Get ui checklist status. More...
 

Protected Attributes

UIFactory $ui_factory
 
ChecklistStatus $status
 
Language $lng
 

Private Attributes

UIRenderer $ui_renderer
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 31 of file class.ChecklistGUI.php.

Member Function Documentation

◆ getUIChecklistStatus()

ILIAS\User\Profile\ChecklistGUI::getUIChecklistStatus ( int  $check_list_status)
protected

◆ render()

ILIAS\User\Profile\ChecklistGUI::render ( int  $active_step)

Definition at line 55 of file class.ChecklistGUI.php.

55 : string
56 {
57 $active_step_nr = 0;
58 $workflow_factory = $this->ui_factory->listing()->workflow();
60
61 //setup steps
62 $steps = [];
63 $cnt = 0;
64 foreach ($this->status->getSteps() as $step => $txt) {
65 if ($step == $active_step) {
66 $active_step_nr = $cnt;
67 }
68 $cnt++;
69 $s = $workflow_factory->step($txt, $status->getStatusDetails($step))
70 ->withStatus($this->getUIChecklistStatus($status->getStatus($step)));
71 $steps[] = $s;
72 }
73
74 //setup linear workflow
75 $wf = $workflow_factory->linear($this->lng->txt("user_privacy_checklist"), $steps)
76 ->withActive($active_step_nr);
77
78 //render
79 return $this->ui_renderer->render($wf);
80 }
getUIChecklistStatus(int $check_list_status)
Get ui checklist status.
$txt
Definition: error.php:31

References ILIAS\User\Profile\ChecklistGUI\$status, $txt, ILIAS\User\Profile\ChecklistStatus\getStatus(), ILIAS\User\Profile\ChecklistStatus\getStatusDetails(), ILIAS\User\Profile\ChecklistGUI\getUIChecklistStatus(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Field Documentation

◆ $lng

Language ILIAS\User\Profile\ChecklistGUI::$lng
protected

Definition at line 36 of file class.ChecklistGUI.php.

◆ $status

ChecklistStatus ILIAS\User\Profile\ChecklistGUI::$status
protected

Definition at line 35 of file class.ChecklistGUI.php.

Referenced by ILIAS\User\Profile\ChecklistGUI\render().

◆ $ui_factory

UIFactory ILIAS\User\Profile\ChecklistGUI::$ui_factory
protected

Definition at line 33 of file class.ChecklistGUI.php.

◆ $ui_renderer

UIRenderer ILIAS\User\Profile\ChecklistGUI::$ui_renderer
private

Definition at line 34 of file class.ChecklistGUI.php.


The documentation for this class was generated from the following file: