/** * function getHTML * <pre> * This method returns the HTML data generated by this object. * </pre> * @return [STRING] HTML Display data. */ function getHTML() { // Make a new Template object $path = SITE_PATH_TEMPLATES; // Replace $path with the following line if you want to create a // template tailored for this page: //$path = $this->pathModuleRoot.'templates/'; $this->template = new Template($path); // store the Row Manager's XML Node Name $this->template->set('rowManagerXMLNodeName', RowManager_DAObjManager::XML_NODE_NAME); // store the field names being displayed $fieldNames = explode(',', page_DAObjList::DISPLAY_FIELDS); $this->template->set('dataFieldList', $fieldNames); // store the primary key field name for the data being displayed $this->template->set('primaryKeyFieldName', 'daobj_id'); // store the link values // $this->linkValues[ 'view' ] = 'add/new/href/data/here'; $this->template->set('linkValues', $this->linkValues); // store the link labels $this->linkLabels['add'] = $this->labels->getLabel('[Add]'); $this->linkLabels['edit'] = $this->labels->getLabel('[Edit]'); $this->linkLabels['del'] = $this->labels->getLabel('[Delete]'); $this->linkLabels['cont'] = $this->labels->getLabel('[Continue]'); // $this->linkLabels[ 'view' ] = 'new link label here'; $this->template->set('linkLabels', $this->linkLabels); // store any additional link Columns // example: //$title = $this->labels->getLabel( '[title_groups]'); //$columnLabel = $this->labels->getLabel( '[groups]'); //$link = $this->linkValues[ 'groups' ]; //$fieldName = 'accessgroup_id'; //$this->addLinkColumn( $title, $columnLabel, $link, $fieldName); $this->template->set('linkColumns', $this->linkColumns); // store the page labels // NOTE: use this location to update any label tags ... // example: $moduleManager = new RowManager_ModuleManager($this->module_id); $name = $moduleManager->getModuleName(); $this->labels->setLabelTag('[Title]', '[moduleName]', $name); $this->template->setXML('pageLabels', $this->labels->getLabelXML()); // store XML List of Applicants ... $this->template->setXML('dataList', $this->listManager->getXML()); /* * Set up any additional data transfer to the Template here... */ $moduleID = $moduleManager->getID(); $stateVarList = new StateVarList($moduleID); $dataList = $stateVarList->getDroplistArray(); $this->template->set('list_daobj_managerInitVarID', $dataList); $this->template->set('list_daobj_listInitVarID', $dataList); $templateName = 'siteDataList.php'; // if you are creating a custom template for this page then // replace $templateName with the following: //$templateName = 'page_DAObjList.php'; return $this->template->fetch($templateName); }