本文整理汇总了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']);
}
示例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{