Inserts all loaded application templates into the selector's template.
Definition at line 258 of file class_ApplicationSelector.php. References $dummy, BaseFrameworkSystem.$templateInstance, BaseFrameworkSystem.getConfigInstance(), getLoadedTemplates(), and BaseFrameworkSystem.prepareTemplateInstance(). 00258 { 00259 // First prepare the instance 00260 $templateInstance = $this->prepareTemplateInstance($this); 00261 00262 // Load template which shall later hold all application templates 00263 $templateInstance->loadCodeTemplate($this->getConfigInstance()->readConfig('selector_apps_tpl')); 00264 00265 // Add all loaded application templates together 00266 $dummy = ""; 00267 for ($idx = $this->getLoadedTemplates()->getIterator(); $idx->valid(); $idx->next()) { 00268 // Get current item from array object 00269 $curr = $idx->current(); 00270 00271 // Do some sanity checks on the loaded item 00272 if (is_null($curr)) { 00273 // $curr is null 00274 throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER); 00275 } elseif (!is_array($curr)) { 00276 // Not an array 00277 throw new NoArrayException($curr, self::EXCEPTION_IS_NO_ARRAY); 00278 } elseif (count($curr) != 2) { 00279 // Not expected count of entries 00280 throw new InvalidArrayCountException(array($this, "curr", count($curr), 2), self::EXCEPTION_ARRAY_HAS_INVALID_COUNT); 00281 } elseif (!isset($curr['template_class']) || (!isset($curr['app_instance']))) { 00282 // Expected entries missing 00283 throw new MissingArrayElementsException(array($this, "curr", array("template_class", "app_instance")), self::EXCEPTION_ARRAY_ELEMENTS_MISSING); 00284 } 00285 00286 // Debug output 00287 die(__METHOD__."()<pre>".print_r($curr, true)."</pre>"); 00288 } // END - for 00289 }
Here is the call graph for this function:
![]()
|
1.5.6