function display() { $this->dv->process(); echo '<style type="text/css">@import url("custom/modules/ACLRoles/styles/securitygroups.css"); </style>'; $file = SugarController::getActionFilename($this->action); $this->includeClassicFile('modules/' . $this->module . '/' . $file . '.php'); }
/** * @see SugarView::display() */ public function display() { // Call SugarController::getActionFilename to handle case sensitive file names $file = SugarController::getActionFilename($this->action); $classic = SugarAutoLoader::existingCustomOne('modules/' . $this->module . '/' . $file . '.php'); if ($classic) { $this->includeClassicFile($classic); return true; } return false; }
/** * @see SugarView::display() */ public function display() { // Call SugarController::getActionFilename to handle case sensitive file names $file = SugarController::getActionFilename($this->action); if (file_exists('custom/modules/' . $this->module . '/' . $file . '.php')) { $this->includeClassicFile('custom/modules/' . $this->module . '/' . $file . '.php'); return true; } elseif (file_exists('modules/' . $this->module . '/' . $file . '.php')) { $this->includeClassicFile('modules/' . $this->module . '/' . $file . '.php'); return true; } return false; }
/** * @see SugarView::display() */ public function display() { if ($this->bean instanceof SugarBean && isset($this->view_object_map['remap_action']) && !$this->bean->ACLAccess($this->view_object_map['remap_action'])) { ACLController::displayNoAccess(true); return false; } // Call SugarController::getActionFilename to handle case sensitive file names $file = SugarController::getActionFilename($this->action); $classic_file = SugarAutoLoader::existingCustomOne('modules/' . $this->module . '/' . $file . '.php'); if ($classic_file) { $this->includeClassicFile($classic_file); return true; } return false; }
public function testgetActionFilename() { //first check with a invalid value $action = SugarController::getActionFilename(''); $this->assertEquals('', $action); //secondly check with a valid value $action = SugarController::getActionFilename('editview'); $this->assertEquals('EditView', $action); }
function display() { $this->dv->process(); $file = SugarController::getActionFilename($this->action); $this->includeClassicFile('modules/' . $this->module . '/' . $file . '.php'); }