/** * Perform the main actions of the page. */ protected function setDisplayData() { parent::setDisplayData(); $config = I2CE::getConfig(); $ReportViewMagicData = $config->traverse("/modules/CustomReports/reportViews/"); if (!$ReportViewMagicData instanceof I2CE_MagicDataNode) { I2CE::raiseError("Bad Magic node"); return; } $AllReportViews = $ReportViewMagicData->getKeys(); $selectOptions = array(); foreach ($AllReportViews as $ReportView) { $selectOptions[$ReportView] = $ReportView; } $this->template->setDisplayData("ReportViews", $selectOptions); }
/** * Set the data to be displayed for the page. */ protected function setDisplayData() { parent::setDisplayData(); $this->template->setDisplayData($this->getParentFormName() . "_header", $this->getTitle()); if (!($form_link = $this->form_link)) { if ($this->module == 'I2CE') { $form_link = $this->page; } else { $form_link = $this->module . '/' . $this->page; } } $this->template->setDisplayData($this->getParentFormName() . "_form", $form_link); }
/** * Set the data to be displayed for the outside of the form field elements. * * Set up the static data to be displayed in the template. The default method * doesn't do anything, but sub-classes may need to override this method. * */ protected function setDisplayData() { parent::setDisplayData(); $add_type = array('type' => $this->type, "nosetdefault" => $this->request("nosetdefault")); if (($hiddenSelectNode = $this->template->getElementByName('show_i2ce_hidden', 0)) instanceof DOMElement) { $this->template->addHeaderLink("mootools-core.js"); $url = "index.php/lists?" . http_build_query($add_type) . '&show_i2ce_hidden='; $js = 'document.location.href = "' . addslashes($url) . '" + this.get("value");'; $hiddenSelectNode->setAttribute('onChange', $js); $this->template->selectOptionsImmediate('show_i2ce_hidden', $this->showHidden()); } if (($primary = $this->getPrimary()) instanceof I2CE_List) { $this->template->setDisplayData("type_name", $primary->getDisplayName()); $this->template->setDisplayData("type", $primary->getName()); $this->template->setDisplayData("id", $primary->getNameId()); } $this->template->setDisplayData("link", $this->request("link")); $this->template->setDisplayData("mapped", $this->request("mapped")); $this->template->setDisplayData("nosetdefault", $this->request("nosetdefault")); $this->template->setDisplayData("i2ce_template", $this->request("i2ce_template")); if (I2CE_FormStorage::isWritable($this->type)) { $this->template->setDisplayData("list_is_writable", 1); } else { $this->template->setDisplayData("list_is_writable", 0); } $show_link = $add_type; if ($this->select_field instanceof I2CE_FormField) { $add_type['field'] = $this->select_field->getName(); if ($this->request("nosetdefault") != "1" && $this->select_field->isSetValue()) { $add_type[$this->select_field->getHTMLName()] = $this->select_field->getDBValue(); } if ($this->select_field->isSetValue()) { $show_link[$this->select_field->getHTMLName()] = $this->select_field->getDBValue(); } else { $show_link[$this->select_field->getHTMLName()] = ''; } $show_link['field'] = $this->select_field->getName(); $show_link['id'] = $this->id; $this->template->setDisplayData('field', $this->select_field->getName()); $this->template->setDisplayData('field_name', $this->select_field->getHeader()); } else { $this->template->setDisplayData('field', ''); $this->template->setDisplayData('field_name', ''); } $this->template->setDisplayData('do_not_show_i2ce_hidden_link', $show_link); $this->template->setDisplayData('do_show_i2ce_hidden_link', $show_link); $add_type['show_i2ce_hidden'] = $this->showHidden(); $this->template->setDisplayData("add_type", $add_type); if ($this->get_exists('add') || substr($this->id, -2) == "|0") { $return_page = "lists?"; } else { $return_page = $this->getViewPage($this->type) . "?id=" . $this->id; } foreach ($add_type as $key => $val) { $return_page .= "&{$key}={$val}"; } $this->template->setDisplayData("add_return", $return_page); }
/** * Set the data to be displayed for the page. */ protected function setDisplayData() { I2CE_PageForm::setDisplayData(); $this->template->setDisplayData("training_header", $this->getTitle()); $this->template->setDisplayData("training_form", "training_resume"); }
/** * Set the data to be displayed for the page. */ protected function setDisplayData() { parent::setDisplayData(); $this->template->setDisplayData("provider_instance_header", $this->getTitle()); $this->template->setDisplayData("provider_instance_form", $this->form_link); }
/** * Set the data to be displayed for the page. */ protected function setDisplayData() { I2CE_PageForm::setDisplayData(); $this->template->setDisplayData("training_header", $this->getTitle()); $this->template->setDisplayData("training_form", "disciplinary_reinstate"); }
/** * Set the data to be displayed for the page. */ protected function setDisplayData() { parent::setDisplayData(); $this->template->setDisplayData("training_header", $this->getTitle()); $this->template->setDisplayData("training_form", $this->getForm()); }
/** * Set the data to be displayed for the page. */ protected function setDisplayData() { parent::setDisplayData(); }