ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ILIAS\TestQuestionPool\Skills\ilAssQuestionSkillUsagesGUI Class Reference
+ Collaboration diagram for ILIAS\TestQuestionPool\Skills\ilAssQuestionSkillUsagesGUI:

Public Member Functions

 __construct (private readonly UIFactory $ui_factory, private readonly UIRenderer $ui_renderer, private readonly GlobalHttpState $http_state, private readonly \ilLanguage $lng, private readonly \ilGlobalTemplateInterface $tpl, private readonly \ilDBInterface $db, private readonly int $parent_obj_id)
 
 executeCommand ()
 
 showCmd ()
 

Data Fields

const string CMD_SHOW = 'show'
 

Private Member Functions

 getTable ()
 

Detailed Description

Definition at line 27 of file class.ilAssQuestionSkillUsagesGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\TestQuestionPool\Skills\ilAssQuestionSkillUsagesGUI::__construct ( private readonly UIFactory  $ui_factory,
private readonly UIRenderer  $ui_renderer,
private readonly GlobalHttpState  $http_state,
private readonly \ilLanguage  $lng,
private readonly \ilGlobalTemplateInterface  $tpl,
private readonly \ilDBInterface  $db,
private readonly int  $parent_obj_id 
)

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

39 {
40 }

Member Function Documentation

◆ executeCommand()

ILIAS\TestQuestionPool\Skills\ilAssQuestionSkillUsagesGUI::executeCommand ( )

Definition at line 42 of file class.ilAssQuestionSkillUsagesGUI.php.

References ILIAS\TestQuestionPool\Skills\ilAssQuestionSkillUsagesGUI\showCmd().

+ Here is the call graph for this function:

◆ getTable()

ILIAS\TestQuestionPool\Skills\ilAssQuestionSkillUsagesGUI::getTable ( )
private

Definition at line 53 of file class.ilAssQuestionSkillUsagesGUI.php.

53 : string
54 {
55 $assignment_list = new \ilAssQuestionSkillAssignmentList($this->db);
56 $assignment_list->setParentObjId($this->parent_obj_id);
57 $assignment_list->loadFromDb();
58 $assignment_list->loadAdditionalSkillData();
59
60 $table = new SkillUsagesTable($this->ui_factory, $this->lng, $assignment_list);
61
62 return $this->ui_renderer->render($table->getComponent()->withRequest($this->http_state->request()));
63 }

References ILIAS\Repository\lng().

Referenced by ILIAS\TestQuestionPool\Skills\ilAssQuestionSkillUsagesGUI\showCmd().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showCmd()

ILIAS\TestQuestionPool\Skills\ilAssQuestionSkillUsagesGUI::showCmd ( )

Definition at line 47 of file class.ilAssQuestionSkillUsagesGUI.php.

47 : bool
48 {
49 $this->tpl->setContent($this->getTable());
50 return true;
51 }

References ILIAS\TestQuestionPool\Skills\ilAssQuestionSkillUsagesGUI\getTable().

Referenced by ILIAS\TestQuestionPool\Skills\ilAssQuestionSkillUsagesGUI\executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ CMD_SHOW

const string ILIAS\TestQuestionPool\Skills\ilAssQuestionSkillUsagesGUI::CMD_SHOW = 'show'

Definition at line 29 of file class.ilAssQuestionSkillUsagesGUI.php.


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