Ejemplo n.º 1
0
 public function view($elementPath = "", $template = "default")
 {
     if ($this->breakMe()) {
         return;
     }
     $hierarchy = umiHierarchy::getInstance();
     list($template_block) = def_module::loadTemplates("tpls/modulelements/{$template}.tpl", "view");
     $elementId = $this->analyzeRequiredPath($elementPath);
     //echo $elementId;
     $element = $hierarchy->getElement($elementId);
     templater::pushEditable("modulelements", "item_element", $element->id);
     return self::parseTemplate($template_block, array('id' => $element->id), $element->id);
 }