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