本文整理匯總了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();
}