@@ -60,7 +60,10 @@ public function __construct($id, $mode, \Doku_Renderer $renderer, SearchConfig $
6060 $ this ->mode = $ mode ;
6161 $ this ->renderer = $ renderer ;
6262 $ this ->searchConfig = $ searchConfig ;
63- $ this ->data = $ this ->searchConfig ->getConf ();
63+ $ this ->data = $ searchConfig ->getConf ();
64+ $ this ->columns = $ searchConfig ->getColumns ();
65+ $ this ->result = $ this ->searchConfig ->execute ();
66+ $ this ->resultCount = $ this ->searchConfig ->getCount ();
6467 $ this ->helper = plugin_load ('helper ' , 'struct_config ' );
6568 }
6669
@@ -101,15 +104,6 @@ public function getScopeClasses()
101104 return $ classes ;
102105 }
103106
104- public function executeSearch ()
105- {
106- $ this ->columns = $ this ->searchConfig ->getColumns ();
107- $ this ->result = $ this ->searchConfig ->execute ();
108- $ this ->resultCount = $ this ->searchConfig ->getCount ();
109-
110- $ this ->postSearch ();
111- }
112-
113107 /**
114108 * Render the actual output to the renderer
115109 *
@@ -126,9 +120,6 @@ abstract public function render($showNotFound = false);
126120 */
127121 public function startScope ()
128122 {
129- if ($ this ->mode !== 'metadata ' ) {
130- $ this ->executeSearch ();
131- }
132123 if ($ this ->mode == 'xhtml ' ) {
133124 $ classes = $ this ->getScopeClasses ();
134125
@@ -139,16 +130,6 @@ public function startScope()
139130 }
140131 }
141132
142- /**
143- * Child classes can set their own class properties based on search result
144- *
145- * @return void
146- */
147- public function postSearch ()
148- {
149- return ;
150- }
151-
152133 /**
153134 * Closes anything opened in startScope()
154135 *
0 commit comments