コード例 #1
0
ファイル: SupportPortal.php プロジェクト: Terradex/sugar
     $sugar_smarty->assign('helpBar', getHelpBar($send_module));
     $sugar_smarty->assign('bookmarkScript', bookmarkJS());
     $sugar_smarty->assign('title', $mod_strings['LBL_SUGARCRM_HELP'] . " - " . $send_module);
     $sugar_smarty->assign('styleSheet', SugarThemeRegistry::current()->getCSS());
     $sugar_smarty->assign('table', getTable());
     $sugar_smarty->assign('endtable', endTable());
     $sugar_smarty->assign('charset', $app_strings['LBL_CHARSET']);
     echo $sugar_smarty->fetch('modules/Administration/SupportPortal.tpl');
 } else {
     if (empty($send_module)) {
         $send_module = 'toc';
     }
     $dev_status = 'GA';
     //If there is an alphabetic portion between the decimal prefix and integer suffix, then use the
     //value there as the dev_status value
     $dev_status = getVersionStatus($GLOBALS['sugar_version']);
     $send_version = getMajorMinorVersion($GLOBALS['sugar_version']);
     $editionMap = array('ENT' => 'Enterprise', 'PRO' => 'Professional', 'CE' => 'Community_Edition');
     if (!empty($editionMap[$send_edition])) {
         $send_edition = $editionMap[$send_edition];
     }
     //map certain modules
     $sendModuleMap = array('administration' => array(array('name' => 'Administration', 'action' => 'supportportal', 'anchor' => '1111871'), array('name' => 'Administration', 'action' => 'updater', 'anchor' => '1111871'), array('name' => 'Administration', 'action' => 'licensesettings', 'anchor' => '1111871'), array('name' => 'Administration', 'action' => 'diagnostic', 'anchor' => '1111949'), array('name' => 'Administration', 'action' => 'listviewofflineclient', 'anchor' => '1111949'), array('name' => 'Administration', 'action' => 'enablewirelessmodules', 'anchor' => '1111949'), array('name' => 'Administration', 'action' => 'backups', 'anchor' => '1111949'), array('name' => 'Administration', 'action' => 'upgrade', 'anchor' => '1111949'), array('name' => 'Administration', 'action' => 'locale', 'anchor' => '1111949'), array('name' => 'Administration', 'action' => 'themesettings', 'anchor' => '1111949'), array('name' => 'Administration', 'action' => 'passwordmanager', 'anchor' => '1446494'), array('name' => 'Administration', 'action' => 'upgradewizard', 'anchor' => '1168410'), array('name' => 'Administration', 'action' => 'configuretabs', 'anchor' => '1168410'), array('name' => 'Administration', 'action' => 'configuresubpanels', 'anchor' => '1168410'), array('name' => 'Administration', 'action' => 'wizard', 'anchor' => '1168410')), 'calls' => array(array('name' => 'Activities')), 'tasks' => array(array('name' => 'Activities')), 'meetings' => array(array('name' => 'Activities')), 'notes' => array(array('name' => 'Activities')), 'configurator' => array(array('name' => 'Administration', 'anchor' => '1111949')), 'upgradewizard' => array(array('name' => 'Administration', 'anchor' => '1111949')), 'schedulers' => array(array('name' => 'Administration', 'anchor' => '1111949')), 'sugarfeed' => array(array('name' => 'Administration', 'anchor' => '1111949')), 'connectors' => array(array('name' => 'Administration', 'anchor' => '1111949')), 'trackers' => array(array('name' => 'Administration', 'anchor' => '1111949')), 'currencies' => array(array('name' => 'Administration', 'anchor' => '1111949')), 'aclroles' => array(array('name' => 'Administration', 'anchor' => '1446494')), 'roles' => array(array('name' => 'Administration', 'anchor' => '1446494')), 'teams' => array(array('name' => 'Administration', 'anchor' => '1446494')), 'users' => array(array('name' => 'Administration', 'anchor' => '1446494'), array('name' => 'Getting_Started', 'action' => 'detailview')), 'modulebuilder' => array(array('name' => 'Administration', 'anchor' => '1168410')), 'studio' => array(array('name' => 'Administration', 'anchor' => '1168410')), 'workflow' => array(array('name' => 'Administration', 'anchor' => '1168410')), 'producttemplates' => array(array('name' => 'Administration', 'anchor' => '1839811')), 'productcategories' => array(array('name' => 'Administration', 'anchor' => '1839811')), 'producttypes' => array(array('name' => 'Administration', 'anchor' => '1839811')), 'manufacturers' => array(array('name' => 'Administration', 'anchor' => '1839811')), 'shippers' => array(array('name' => 'Administration', 'anchor' => '1839811')), 'taxrates' => array(array('name' => 'Administration', 'anchor' => '1839811')), 'releases' => array(array('name' => 'Administration', 'anchor' => '1113968')), 'timeperiods' => array(array('name' => 'Administration', 'anchor' => '1840043')), 'contracttypes' => array(array('name' => 'Administration', 'anchor' => '1840081')), 'contracttype' => array(array('name' => 'Administration', 'anchor' => '1840081')), 'emailman' => array(array('name' => 'Administration', 'anchor' => '1445484')), 'inboundemail' => array(array('name' => 'Administration', 'anchor' => '1445484')), 'emailtemplates' => array(array('name' => 'Emails')), 'prospects' => array(array('name' => 'Campaigns')), 'prospectlists' => array(array('name' => 'Campaigns')), 'reportmaker' => array(array('name' => 'Reports')), 'customqueries' => array(array('name' => 'Reports')), 'quotas' => array(array('name' => 'Forecasts')), 'projecttask' => array(array('name' => 'Projects')), 'project' => array(array('name' => 'Projects'), array('name' => 'Dashboard', 'action' => 'dashboard')), 'projecttemplate' => array(array('name' => 'Projects')), 'datasets' => array(array('name' => 'Reports')), 'dataformat' => array(array('name' => 'Reports')), 'kbdocuments' => array(array('name' => 'Administration', 'action' => 'kbadminview')));
     if (!empty($sendModuleMap[strtolower($send_module)])) {
         $mappings = $sendModuleMap[strtolower($send_module)];
         foreach ($mappings as $map) {
             if (!empty($map['action'])) {
                 if ($map['action'] == strtolower($send_action)) {
                     $send_module = $map['name'];
                     if (!empty($map['anchor'])) {
                         $send_anchor = $map['anchor'];
コード例 #2
0
 /**
  * @dataProvider providerVersionStatus
  */
 public function testVersionStatus($version, $expectedResult)
 {
     $returnedStatus = getVersionStatus($version);
     $this->assertEquals($returnedStatus, $expectedResult, "{$returnedStatus} status did not match expected status of {$expectedResult}");
 }