当前位置: 首页>>代码示例>>PHP>>正文


PHP SugarController::process方法代码示例

本文整理汇总了PHP中SugarController::process方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarController::process方法的具体用法?PHP SugarController::process怎么用?PHP SugarController::process使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SugarController的用法示例。


在下文中一共展示了SugarController::process方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: process

 function process()
 {
     if (!is_admin($GLOBALS['current_user']) && in_array($this->action, $this->admin_actions)) {
         $this->hasAccess = false;
     }
     parent::process();
 }
开发者ID:nartnik,项目名称:sugarcrm_test,代码行数:7,代码来源:controller.php

示例2: process

 public function process()
 {
     if (!is_admin($GLOBALS['current_user'])) {
         $this->hasAccess = false;
     }
     parent::process();
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:7,代码来源:controller.php

示例3: testprocess

 public function testprocess()
 {
     $SugarController = new SugarController();
     //execute the method and check if it works and doesn't throws an exception
     try {
         $SugarController->process();
     } catch (Exception $e) {
         $this->fail();
     }
     $this->assertTrue(true);
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:11,代码来源:SugarControllerTest.php

示例4: process

 public function process()
 {
     global $app_list_strings;
     $app_list_strings['report_available_modules'] = Reports_Utils::available_modules(FALSE);
     foreach ($app_list_strings['report_available_modules'] as $key => &$val) {
         if (isset($app_list_strings['moduleList'][$key])) {
             $val = $app_list_strings['moduleList'][$key];
         }
     }
     parent::process();
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:11,代码来源:controller.php

示例5: process

 function process()
 {
     $GLOBALS['log']->info(get_class($this) . ":");
     global $current_user;
     $access = get_admin_modules_for_user($current_user);
     if (is_admin($current_user) || is_admin_for_any_module($current_user) && !isset($_REQUEST['view_module']) && (isset($_REQUEST['action']) && $_REQUEST['action'] != 'package') || isset($_REQUEST['view_module']) && (in_array($_REQUEST['view_module'], $access) || empty($_REQUEST['view_module'])) || isset($_REQUEST['type']) && ($_REQUEST['type'] == 'dropdowns' && is_admin_for_any_module($current_user) || $_REQUEST['type'] == 'studio' && displayStudioForCurrentUser() == true)) {
         $this->hasAccess = true;
     } else {
         $this->hasAccess = false;
     }
     parent::process();
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:12,代码来源:controller.php

示例6: process

 function process()
 {
     $GLOBALS['log']->info(get_class($this) . ":");
     global $current_user;
     $access = $current_user->getDeveloperModules();
     if ($current_user->isAdmin() || $current_user->isDeveloperForAnyModule() && !isset($_REQUEST['view_module']) && (isset($_REQUEST['action']) && $_REQUEST['action'] != 'package') || isset($_REQUEST['view_module']) && (in_array($_REQUEST['view_module'], $access) || empty($_REQUEST['view_module'])) || isset($_REQUEST['type']) && ($_REQUEST['type'] == 'dropdowns' && $current_user->isDeveloperForAnyModule() || $_REQUEST['type'] == 'studio' && displayStudioForCurrentUser() == true)) {
         $this->hasAccess = true;
     } else {
         $this->hasAccess = false;
     }
     parent::process();
 }
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:12,代码来源:controller.php

示例7: process

 function process()
 {
     if (isset($_REQUEST['searchFormTab']) && $_REQUEST['searchFormTab'] == 'basic_search') {
         $this->modifySearch('subject_basic');
         $this->modifySearch('description_basic');
     } else {
         if (isset($_REQUEST['searchFormTab']) && $_REQUEST['searchFormTab'] == 'advanced_search') {
             $this->modifySearch('name_advanced');
             $this->modifySearch('description_advanced');
         }
     }
     parent::process();
 }
开发者ID:santara12,项目名称:OpenQuotesAndContracts,代码行数:13,代码来源:controller.php

示例8: process

 public function process()
 {
     if ($this->action == 'EditView' && empty($_REQUEST['record'])) {
         $this->action = 'WizardHome';
     } else {
         if ($this->action == 'EditView' && !empty($_REQUEST['record'])) {
             // Show Send Email and Summary
             $this->action = 'WizardHome';
             // modules/Campaigns/WizardHome.php isWizardSummary
             $_REQUEST['action'] = 'WizardHome';
         }
     }
     parent::process();
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:14,代码来源:controller.php

示例9: process

 public function process() {
     if($this->action == 'EditView' && empty($_REQUEST['record'])) {
         $this->action = 'WizardHome';
     }
     parent::process();
 }
开发者ID:auf,项目名称:crm_auf_org,代码行数:6,代码来源:controller.php


注:本文中的SugarController::process方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。