本文整理汇总了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();
}
示例2: process
public function process()
{
if (!is_admin($GLOBALS['current_user'])) {
$this->hasAccess = false;
}
parent::process();
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例9: process
public function process() {
if($this->action == 'EditView' && empty($_REQUEST['record'])) {
$this->action = 'WizardHome';
}
parent::process();
}