4
4
5
5
namespace Icinga \Module \Icingadb \Controllers ;
6
6
7
- use Icinga \Exception \NotFoundError ;
8
7
use Icinga \Module \Icingadb \Common \CommandActions ;
9
8
use Icinga \Module \Icingadb \Data \DependencyNodes ;
10
9
use Icinga \Module \Icingadb \Model \DependencyNode ;
17
16
use Icinga \Module \Icingadb \Widget \Detail \RedundancyGroupDetail ;
18
17
use Icinga \Module \Icingadb \Widget \Detail \RedundancyGroupHeader ;
19
18
use Icinga \Module \Icingadb \Widget \ItemList \DependencyNodeList ;
20
- use ipl \Html \HtmlElement ;
21
- use ipl \Html \Text ;
19
+ use Generator ;
22
20
use ipl \Orm \Query ;
23
21
use ipl \Stdlib \Filter ;
24
22
use ipl \Web \Control \LimitControl ;
@@ -96,7 +94,7 @@ public function indexAction(): void
96
94
$ this ->addContent (new RedundancyGroupDetail ($ this ->group ));
97
95
}
98
96
99
- public function membersAction (): void
97
+ public function membersAction (): Generator
100
98
{
101
99
$ this ->loadGroup ();
102
100
$ nodesQuery = $ this ->fetchNodes (true );
@@ -138,6 +136,8 @@ public function membersAction(): void
138
136
139
137
$ nodesQuery ->filter ($ filter );
140
138
139
+ yield $ this ->export ($ nodesQuery );
140
+
141
141
$ this ->addControl ($ paginationControl );
142
142
$ this ->addControl ($ sortControl );
143
143
$ this ->addControl ($ limitControl );
@@ -156,7 +156,7 @@ public function membersAction(): void
156
156
$ this ->setAutorefreshInterval (10 );
157
157
}
158
158
159
- public function childrenAction (): void
159
+ public function childrenAction (): Generator
160
160
{
161
161
$ this ->loadGroup ();
162
162
$ nodesQuery = $ this ->fetchNodes ();
@@ -202,6 +202,8 @@ public function childrenAction(): void
202
202
203
203
$ nodesQuery ->filter ($ filter );
204
204
205
+ yield $ this ->export ($ nodesQuery );
206
+
205
207
$ this ->addControl ($ paginationControl );
206
208
$ this ->addControl ($ sortControl );
207
209
$ this ->addControl ($ limitControl );
0 commit comments