@@ 200-226 (lines=27) @@ | ||
197 | /** |
|
198 | * Generate XML for the browser tree. |
|
199 | */ |
|
200 | public function doTree() |
|
201 | { |
|
202 | $conf = $this->conf; |
|
203 | $misc = $this->misc; |
|
204 | $lang = $this->lang; |
|
205 | $data = $misc->getDatabaseAccessor(); |
|
206 | ||
207 | $domains = $data->getDomains(); |
|
208 | ||
209 | $reqvars = $misc->getRequestVars('domain'); |
|
210 | ||
211 | $attrs = [ |
|
212 | 'text' => Decorator::field('domname'), |
|
213 | 'icon' => 'Domain', |
|
214 | 'toolTip' => Decorator::field('domcomment'), |
|
215 | 'action' => Decorator::actionurl('domains.php', |
|
216 | $reqvars, |
|
217 | [ |
|
218 | 'action' => 'properties', |
|
219 | 'domain' => Decorator::field('domname'), |
|
220 | ] |
|
221 | ), |
|
222 | ]; |
|
223 | ||
224 | return $this->printTree($domains, $attrs, 'domains'); |
|
225 | } |
|
226 | ||
227 | /** |
|
228 | * Function to save after altering a domain |
|
229 | */ |
@@ 198-224 (lines=27) @@ | ||
195 | /** |
|
196 | * Generate XML for the browser tree. |
|
197 | */ |
|
198 | public function doTree() |
|
199 | { |
|
200 | $conf = $this->conf; |
|
201 | $misc = $this->misc; |
|
202 | $lang = $this->lang; |
|
203 | $data = $misc->getDatabaseAccessor(); |
|
204 | ||
205 | $sequences = $data->getSequences(); |
|
206 | ||
207 | $reqvars = $misc->getRequestVars('sequence'); |
|
208 | ||
209 | $attrs = [ |
|
210 | 'text' => Decorator::field('seqname'), |
|
211 | 'icon' => 'Sequence', |
|
212 | 'toolTip' => Decorator::field('seqcomment'), |
|
213 | 'action' => Decorator::actionurl('sequences.php', |
|
214 | $reqvars, |
|
215 | [ |
|
216 | 'action' => 'properties', |
|
217 | 'sequence' => Decorator::field('seqname'), |
|
218 | ] |
|
219 | ), |
|
220 | ]; |
|
221 | ||
222 | return $this->printTree($sequences, $attrs, 'sequences'); |
|
223 | } |
|
224 | ||
225 | /** |
|
226 | * Display the properties of a sequence |
|
227 | */ |
@@ 205-232 (lines=28) @@ | ||
202 | /** |
|
203 | * Generate XML for the browser tree. |
|
204 | */ |
|
205 | public function doTree() |
|
206 | { |
|
207 | $conf = $this->conf; |
|
208 | $misc = $this->misc; |
|
209 | $lang = $this->lang; |
|
210 | $data = $misc->getDatabaseAccessor(); |
|
211 | ||
212 | $types = $data->getTypes(); |
|
213 | ||
214 | $reqvars = $misc->getRequestVars('type'); |
|
215 | ||
216 | $attrs = [ |
|
217 | 'text' => Decorator::field('typname'), |
|
218 | 'icon' => 'Type', |
|
219 | 'toolTip' => Decorator::field('typcomment'), |
|
220 | 'action' => Decorator::actionurl('types.php', |
|
221 | $reqvars, |
|
222 | [ |
|
223 | 'action' => 'properties', |
|
224 | 'type' => Decorator::field('basename'), |
|
225 | ] |
|
226 | ), |
|
227 | ]; |
|
228 | ||
229 | return $this->printTree($types, $attrs, 'types'); |
|
230 | } |
|
231 | ||
232 | /** |
|
233 | * Show read only properties for a type |
|
234 | */ |
|
235 | public function doProperties($msg = '') |