19 declare(strict_types=1);
45 $props[$prop[
"prop"]] = $prop[
"val"];
52 $pb->
build($ass, $user_id);
61 foreach ($pb->getAdditionalHeadProperties() as $p) {
68 foreach ($pb->getSections() as $sec =>
$txt) {
69 if ($act = $pb->getMainAction($sec)) {
70 $main_action = $this->ui_factory->button()->standard(
77 foreach ($pb->getSections(
true,
true) as $sec =>
$txt) {
78 foreach ($pb->getActions($sec) as $act) {
84 $this->
ctrl->setParameterByClass(\ilAssignmentPresentationGUI::class,
"ass_id", $ass->
getId());
85 $title = $this->ui_factory->link()->standard(
87 $this->
ctrl->getLinkTargetByClass(\ilAssignmentPresentationGUI::class,
"")
89 $item = $this->ui_factory->item()->standard(
91 )->withProperties($props)->withLeadText($pb->getLeadText() .
" ");
92 if (count($actions) > 0) {
94 foreach ($actions as $act) {
96 $ks_actions[] = $this->ui_factory->button()->shy(
101 $ks_actions[] = $act;
104 $item = $item->withActions($this->ui_factory->dropdown()->standard($ks_actions));
107 $item = $item->withMainAction($main_action);
109 $this->
ctrl->setParameterByClass(\ilAssignmentPresentationGUI::class,
"ass_id",
null);
PropertyAndActionBuilderUI $prop_builder
addPropertyToItemProperties(array &$props, ?array $prop)
__construct(PropertyAndActionBuilderUI $prop_builder, \ILIAS\UI\Factory $ui_factory, \ilCtrl $ctrl)
Interface Observer Contains several chained tasks and infos about them.
ILIAS UI Factory $ui_factory
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getItem(Assignment $ass, int $user_id)
build(Assignment $ass, int $user_id)