ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Questions\Presentation\Layout\EditOverview Class Reference
+ Inheritance diagram for ILIAS\Questions\Presentation\Layout\EditOverview:
+ Collaboration diagram for ILIAS\Questions\Presentation\Layout\EditOverview:

Public Member Functions

 __construct (private readonly Environment $environment, private readonly URLBuilder $target_to_edit_basic_answer_form_properties)
 
 getUI ()
 
 withViewControl (ViewControlMode $view_control)
 
 withAdditionalButton (StandardButton $button)
 
 withTable (DataTable|OrderingTable $table)
 
 getUI ()
 

Private Member Functions

 buildBasicAnswerFormPanel ()
 

Private Attributes

ViewControlMode $view_control = null
 
array $buttons = []
 
DataTable OrderingTable null $table = null
 

Detailed Description

Definition at line 32 of file EditOverview.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Questions\Presentation\Layout\EditOverview::__construct ( private readonly Environment  $environment,
private readonly URLBuilder  $target_to_edit_basic_answer_form_properties 
)

Definition at line 41 of file EditOverview.php.

44 {
45 }

Member Function Documentation

◆ buildBasicAnswerFormPanel()

ILIAS\Questions\Presentation\Layout\EditOverview::buildBasicAnswerFormPanel ( )
private

Definition at line 95 of file EditOverview.php.

95 : StandardPanel
96 {
97 $content = [
98 $this->environment->getUIFactory()->listing()->descriptive(
99 $this->environment->getAnswerFormProperties()
100 ->getBasicPropertiesForListing(
101 $this->environment
102 )
103 )
104 ];
105
106 if ($this->environment->getEditability() === Editability::Full) {
107 $content[] = $this->environment->getUIFactory()->button()->standard(
108 $this->environment->getLanguage()->txt('edit_basic_answer_form_properties'),
109 $this->target_to_edit_basic_answer_form_properties
110 ->buildURI()
111 ->__toString()
112 );
113 }
114
115 return $this->environment->getUIFactory()->panel()->standard(
116 $this->environment->getLanguage()->txt('basic_answer_form_properties'),
117 $content
118 );
119 }

References ILIAS\UI\examples\Table\Presentation\environment(), and ILIAS\Questions\Presentation\Definitions\Full.

Referenced by ILIAS\Questions\Presentation\Layout\EditOverview\getUI().

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

◆ getUI()

ILIAS\Questions\Presentation\Layout\EditOverview::getUI ( )
Returns
list<Component>

Implements ILIAS\Questions\Presentation\Layout\Viewable.

Definition at line 48 of file EditOverview.php.

48 : array
49 {
50 $ui = [
52
53 ];
54
55 if ($this->view_control !== null) {
56 $ui[] = $this->view_control;
57 }
58
59 $ui_with_buttons = [
60 ...$ui,
61 ...$this->buttons
62 ];
63
64 if ($this->table !== null) {
65 $ui_with_buttons[] = $this->table;
66 }
67
68 return $ui_with_buttons;
69 }

References ILIAS\Questions\Presentation\Layout\EditOverview\$table, ILIAS\Questions\Presentation\Layout\EditOverview\$view_control, and ILIAS\Questions\Presentation\Layout\EditOverview\buildBasicAnswerFormPanel().

+ Here is the call graph for this function:

◆ withAdditionalButton()

ILIAS\Questions\Presentation\Layout\EditOverview::withAdditionalButton ( StandardButton  $button)

Definition at line 79 of file EditOverview.php.

81 : self {
82 $clone = clone $this;
83 $clone->buttons[] = $button;
84 return $clone;
85 }

◆ withTable()

ILIAS\Questions\Presentation\Layout\EditOverview::withTable ( DataTable|OrderingTable  $table)

Definition at line 87 of file EditOverview.php.

89 : self {
90 $clone = clone $this;
91 $clone->table = $table;
92 return $clone;
93 }

◆ withViewControl()

ILIAS\Questions\Presentation\Layout\EditOverview::withViewControl ( ViewControlMode  $view_control)

Definition at line 71 of file EditOverview.php.

73 : self {
74 $clone = clone $this;
75 $clone->view_control = $view_control;
76 return $clone;
77 }

Field Documentation

◆ $buttons

list< StandardButton > ILIAS\Questions\Presentation\Layout\EditOverview::$buttons = []
private

Definition at line 38 of file EditOverview.php.

◆ $table

DataTable OrderingTable null ILIAS\Questions\Presentation\Layout\EditOverview::$table = null
private

◆ $view_control

ViewControlMode ILIAS\Questions\Presentation\Layout\EditOverview::$view_control = null
private

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