/** * Returns an array composing of the breadcrumbs to use for the module title * * @param bool $browserTitle true if the returned string is being used for the browser title, meaning * there should be no HTML in the string * @return array */ protected function _getModuleTitleParams($browserTitle = false) { $params = array($this->_getModuleTitleListParam($browserTitle)); //$params = array(); if (isset($this->action)) { switch ($this->action) { case 'EditView': if (!empty($this->bean->id) && (empty($_REQUEST['isDuplicate']) || $_REQUEST['isDuplicate'] === 'false')) { $params[] = "<a href='index.php?module={$this->module}&action=DetailView&record={$this->bean->id}'>" . $this->bean->get_summary_text() . "</a>"; $params[] = $GLOBALS['app_strings']['LBL_EDIT_BUTTON_LABEL']; } else { $params[] = $GLOBALS['app_strings']['LBL_CREATE_BUTTON_LABEL']; } break; case 'DetailView': $beanName = $this->bean->get_summary_text(); if ($this->bean->isFavoritesEnabled()) { $beanName .= ' ' . SugarFavorites::generateStar(SugarFavorites::isUserFavorite($this->module, $this->bean->id), $this->module, $this->bean->id); } $params[] = $beanName; break; } } return $params; }
template_handle_export($args['reporter']); return; } // if // create report obj with the seed $args['list_nav'] = ''; $args['upper_left'] = ''; // do saves, deletes, and publish control($args); $params = array(); if (!empty($_REQUEST['favorite'])) { $params[] = "<a href='index.php?module=Reports&action=index&favorite=1'>{$mod_strings['LBL_FAVORITES_TITLE']}</a>"; } $star = ''; if (!empty($args['reporter']->saved_report->id)) { $star = SugarFavorites::generateStar(SugarFavorites::isUserFavorite('Reports', $args['reporter']->saved_report->id), 'Reports', $args['reporter']->saved_report->id); } if (!empty($args['reporter']->name)) { $params[] = "{$args['reporter']->name} {$star}"; } //Override the create url $createURL = 'index.php?module=Reports&report_module=&action=index&page=report&Create+Custom+Report=Create+Custom+Report'; echo getClassicModuleTitle("Reports", $params, true, '', $createURL); // show report interface if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'report') { checkSavedReportACL($args['reporter'], $args); if (isset($_REQUEST['run_query']) && $_REQUEST['run_query'] == 1) { reportResults($args['reporter'], $args); } else { reportCriteriaWithResult($args['reporter'], $args); }