本文整理汇总了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);