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


PHP Campaign::list_view_parse_additional_sections方法代碼示例

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


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

示例1: testlist_view_parse_additional_sections

 public function testlist_view_parse_additional_sections()
 {
     error_reporting(E_ERROR | E_PARSE);
     $campaign = new Campaign();
     //test with attributes preset and verify template variables are set accordingly
     $tpl = new Sugar_Smarty();
     $campaign->list_view_parse_additional_sections($tpl);
     $this->assertEquals('', $tpl->_tpl_vars['ASSIGNED_USER_NAME']);
 }
開發者ID:recci,項目名稱:SuiteCRM,代碼行數:9,代碼來源:CampaignTest.php

示例2:

$ss->assign("CAMP_END_DATE", $focus->end_date);
$ss->assign("CAMP_BUDGET", $focus->budget);
$ss->assign("CAMP_ACTUAL_COST", $focus->actual_cost);
$ss->assign("CAMP_EXPECTED_REVENUE", $focus->expected_revenue);
$ss->assign("CAMP_EXPECTED_COST", $focus->expected_cost);
$ss->assign("CAMP_OBJECTIVE", $focus->objective);
$ss->assign("CAMP_CONTENT", $focus->content);
$ss->assign("CAMP_NAME", $focus->name);
$ss->assign("CAMP_RECORD", $focus->id);
$ss->assign("CAMP_IMPRESSIONS", $focus->impressions);
if (empty($focus->assigned_user_id) && empty($focus->id))  $focus->assigned_user_id = $current_user->id;
if (empty($focus->assigned_name) && empty($focus->id))  $focus->assigned_user_name = $current_user->user_name;
$ss->assign("ASSIGNED_USER_OPTIONS", get_select_options_with_id(get_user_array(TRUE, "Active", $focus->assigned_user_id), $focus->assigned_user_id));
//$ss->assign("ASSIGNED_USER_NAME", $focus->assigned_user_name);

$focus->list_view_parse_additional_sections($ss);

$ss->assign("ASSIGNED_USER_ID", $focus->assigned_user_id );

if((!isset($focus->status)) && (!isset($focus->id)))
    $ss->assign("STATUS_OPTIONS", get_select_options_with_id($app_list_strings['campaign_status_dom'], 'Planning'));
else
    $ss->assign("STATUS_OPTIONS", get_select_options_with_id($app_list_strings['campaign_status_dom'], $focus->status));

//hide frequency options if this is not a newsletter
if($campaign_type == 'newsletter'){
    $ss->assign("HIDE_FREQUENCY_IF_NEWSLETTER", "Select");
    $ss->assign("FREQUENCY_LABEL", $mod_strings['LBL_CAMPAIGN_FREQUENCY']);
    if((!isset($focus->frequency)) && (!isset($focus->id))){
        $ss->assign("FREQ_OPTIONS", get_select_options_with_id($app_list_strings['newsletter_frequency_dom'], 'Monthly'));
    }else{
開發者ID:auf,項目名稱:crm_auf_org,代碼行數:31,代碼來源:WizardNewsletter.php


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