◆ executeCommand()
| NodeRetrievalGUI::executeCommand |
( |
| ) |
|
Definition at line 98 of file NodeRetrievalGUI.php.
98 : void
99 {
100 if (!$this->
ctrl->isAsynch()) {
101 throw new \RuntimeException(self::class . ' must be called asynchronously.');
102 }
103 if ($this->
ctrl->getNextClass($this)) {
104 throw new \LogicException(self::class . ' must be the only command class.');
105 }
106
107 if (!$this->get_request->has($this->async_node_id_parameter->getName())) {
109 return;
110 }
111 $parent_node_id = (
int) $this->get_request->retrieve(
112 $this->async_node_id_parameter->getName(),
114 );
116 }
renderAsyncNodeChildren(int $parent_node_id)
sendHtmlResponse(string $html)
References ILIAS\Repository\ctrl(), ILIAS\Repository\int(), ILIAS\Repository\refinery(), renderAsyncNodeChildren(), and sendHtmlResponse().
◆ getNodeRetrieval()
| NodeRetrievalGUI::getNodeRetrieval |
( |
| ) |
|
◆ renderAsyncNodeChildren()
| NodeRetrievalGUI::renderAsyncNodeChildren |
( |
int |
$parent_node_id | ) |
|
|
protected |
Definition at line 123 of file NodeRetrievalGUI.php.
123 : void
124 {
125 $child_node_iterator = $this->node_retrieval->getNodes(
126 $this->ui_factory->input()->field()->node(),
127 $this->ui_factory->symbol()->icon(),
128 (string) $parent_node_id,
129 );
130
131 $html = '';
132 foreach ($child_node_iterator as $node) {
133 $html .= $this->
renderer->renderAsync($node);
134 }
136 }
References renderer(), and sendHtmlResponse().
Referenced by executeCommand().
◆ sendHtmlResponse()
| NodeRetrievalGUI::sendHtmlResponse |
( |
string |
$html | ) |
|
|
protected |
◆ $access
◆ $async_node_id_parameter
◆ $ctrl
◆ $get_request
◆ $http
◆ $node_retrieval
| UINodeRetrieval NodeRetrievalGUI::$node_retrieval |
|
protected |
◆ $refinery
◆ $renderer
◆ $ui_factory
| Factory NodeRetrievalGUI::$ui_factory |
|
protected |
◆ MAX_BRANCH_NODE_DEPTH
| const int NodeRetrievalGUI::MAX_BRANCH_NODE_DEPTH = 2 |
|
protected |
◆ PARENT_NODE_ID_PARAMETER
| const string NodeRetrievalGUI::PARENT_NODE_ID_PARAMETER = 'parent_node_id' |
|
protected |
The documentation for this class was generated from the following file: