module = "EcmProducts"; parent::SugarView(); } function preDisplay() { $metadataFile = null; $foundViewDefs = false; if (file_exists('custom/modules/' . $this->module . '/metadata/editviewdefs.php')) { $metadataFile = 'custom/modules/' . $this->module . '/metadata/editviewdefs.php'; $foundViewDefs = true; } else { if (file_exists('custom/modules/' . $this->module . '/metadata/metafiles.php')) { require_once('custom/modules/' . $this->module . '/metadata/metafiles.php'); if (!empty($metafiles[$this->module]['editviewdefs'])) { $metadataFile = $metafiles[$this->module]['editviewdefs']; $foundViewDefs = true; } } elseif (file_exists('modules/' . $this->module . '/metadata/metafiles.php')) { require_once('modules/' . $this->module . '/metadata/metafiles.php'); if (!empty($metafiles[$this->module]['editviewdefs'])) { $metadataFile = $metafiles[$this->module]['editviewdefs']; $foundViewDefs = true; } } } $GLOBALS['log']->debug("metadatafile=" . $metadataFile); if (file_exists('modules/' . $this->module . '/metadata/editviewdefs.php')) { $metadataFile = 'modules/' . $this->module . '/metadata/editviewdefs.php'; } $this->ev = new EditView(); $this->ev->ss = & $this->ss; $this->ev->setup($this->module, $this->bean, $metadataFile, $this->tplFile); } function display() { $this->ev->process(); $al = $this->bean->getActionList(true); $this->ss->assign('ACTION_LIST', $al); $this->ss->assign('COMPONENT_LIST', $this->bean->component_list); echo $this->ev->display($this->showTitle); } } ?>