/** * Perform the main actions of the page. * @return boolean */ protected function action() { if (!parent::action()) { I2CE::raiseError("Base action failed"); return false; } $this->getODTTemplate(); if (!$this->template_file) { I2CE::raiseError("No Template"); return false; } if (!$this->getTemplateVariables()) { I2CE::raiseError("No template variables"); return false; } if (!$this->loadData()) { I2CE::raiseError("could not load data"); return false; } $this->generateTemplate(); }
protected function action() { if (!parent::action()) { return false; } $this->formRelationship->useRawFields(); $this->ff = I2CE_FormFactory::instance(); $this->setupDefaults(); $this->loadData(false); if (!($node = $this->template->getElementById('siteContent')) instanceof DOMNode) { I2CE::raiseError("No siteContent node"); return false; } $this->template->addHeaderLink('view.js'); $this->template->addHeaderLink('FormRelationship.css'); $this->displayDataTree('primary_form', $this->data, $node); }