當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Opportunity::format_all_fields方法代碼示例

本文整理匯總了PHP中Opportunity::format_all_fields方法的典型用法代碼示例。如果您正苦於以下問題:PHP Opportunity::format_all_fields方法的具體用法?PHP Opportunity::format_all_fields怎麽用?PHP Opportunity::format_all_fields使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Opportunity的用法示例。


在下文中一共展示了Opportunity::format_all_fields方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: get_module_title

require_once 'modules/Opportunities/Forms.php';
require_once 'modules/Currencies/Currency.php';
global $timedate;
global $app_strings;
global $app_list_strings;
global $mod_strings;
global $current_user;
global $sugar_version, $sugar_config;
// Unimplemented until jscalendar language files are fixed
// global $current_language;
// global $default_language;
// global $cal_codes;
$focus = new Opportunity();
if (isset($_REQUEST['record'])) {
    $focus->retrieve($_REQUEST['record']);
    $focus->format_all_fields();
}
//needed when creating a new opportunity with a default account value passed in
$prefillArray = array('account_name' => 'account_name', 'account_id' => 'account_id', 'contact_id' => 'contact_id', 'name' => 'name', 'amount' => 'amount', 'date_closed' => 'date_closed', 'sales_stage' => 'sales_stage', 'probability' => 'probability', 'currency_id' => 'currency_id', 'lead_source' => 'lead_source');
foreach ($prefillArray as $requestKey => $focusVar) {
    if (isset($_REQUEST[$requestKey]) && is_null($focus->{$focusVar})) {
        $focus->{$focusVar} = urldecode($_REQUEST[$requestKey]);
    }
}
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
require_once $theme_path . 'layout_utils.php';
$GLOBALS['log']->info("Opportunity detail view");
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true);
開發者ID:BackupTheBerlios,項目名稱:livealphaprint,代碼行數:31,代碼來源:EditView.php


注:本文中的Opportunity::format_all_fields方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。