当前位置: 首页>>代码示例>>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;未经允许,请勿转载。