@@ 215-245 (lines=31) @@ | ||
212 | /** |
|
213 | * Generate XML for the browser tree. |
|
214 | */ |
|
215 | public function doTree() |
|
216 | { |
|
217 | $conf = $this->conf; |
|
218 | $misc = $this->misc; |
|
219 | $lang = $this->lang; |
|
220 | $data = $misc->getDatabaseAccessor(); |
|
221 | ||
222 | $tabs = $misc->getNavTabs('fulltext'); |
|
223 | $items = $this->adjustTabsForTree($tabs); |
|
224 | ||
225 | $reqvars = $misc->getRequestVars('ftscfg'); |
|
226 | ||
227 | $attrs = [ |
|
228 | 'text' => Decorator::field('title'), |
|
229 | 'icon' => Decorator::field('icon'), |
|
230 | 'action' => Decorator::actionurl('fulltext.php', |
|
231 | $reqvars, |
|
232 | field('urlvars') |
|
233 | ), |
|
234 | 'branch' => Decorator::url('fulltext.php', |
|
235 | $reqvars, |
|
236 | [ |
|
237 | 'action' => 'subtree', |
|
238 | 'what' => Decorator::field('icon'), // IZ: yeah, it's ugly, but I do not want to change navigation tabs arrays |
|
239 | ] |
|
240 | ), |
|
241 | ]; |
|
242 | ||
243 | return $this->printTree($items, $attrs, 'fts'); |
|
244 | } |
|
245 | ||
246 | public function doSubTree($what) |
|
247 | { |
|
248 | $conf = $this->conf; |
@@ 221-250 (lines=30) @@ | ||
218 | /** |
|
219 | * Generate XML for the browser tree. |
|
220 | */ |
|
221 | public function doTree() |
|
222 | { |
|
223 | $conf = $this->conf; |
|
224 | $misc = $this->misc; |
|
225 | $lang = $this->lang; |
|
226 | $data = $misc->getDatabaseAccessor(); |
|
227 | ||
228 | $funcs = $data->getFunctions(); |
|
229 | ||
230 | $proto = Decorator::concat(Decorator::field('proname'), ' (', Decorator::field('proarguments'), ')'); |
|
231 | ||
232 | $reqvars = $misc->getRequestVars('function'); |
|
233 | ||
234 | $attrs = [ |
|
235 | 'text' => $proto, |
|
236 | 'icon' => 'Function', |
|
237 | 'toolTip' => Decorator::field('procomment'), |
|
238 | 'action' => Decorator::redirecturl('redirect.php', |
|
239 | $reqvars, |
|
240 | [ |
|
241 | 'action' => 'properties', |
|
242 | 'function' => $proto, |
|
243 | 'function_oid' => Decorator::field('prooid'), |
|
244 | ] |
|
245 | ), |
|
246 | ]; |
|
247 | ||
248 | return $this->printTree($funcs, $attrs, 'functions'); |
|
249 | } |
|
250 | ||
251 | /** |
|
252 | * Function to save after editing a function. |
|
253 | */ |