本文整理汇总了PHP中ProspectList::get_entry_count方法的典型用法代码示例。如果您正苦于以下问题:PHP ProspectList::get_entry_count方法的具体用法?PHP ProspectList::get_entry_count怎么用?PHP ProspectList::get_entry_count使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProspectList
的用法示例。
在下文中一共展示了ProspectList::get_entry_count方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testget_entry_count
public function testget_entry_count()
{
$prospectList = new ProspectList();
$result = $prospectList->get_entry_count();
$this->assertEquals(0, $result);
}
示例2: create_target_summary
function create_target_summary($focus)
{
global $mod_strings, $app_strings, $app_list_strings;
$colorclass = '';
$camp_type = $focus->campaign_type;
//create schedule table
$pltbl = '';
//set the title based on campaign type
$target_title = $mod_strings['LBL_TARGET_LISTS'];
if ($camp_type == 'NewsLetter') {
$target_title = $mod_strings['LBL_NAVIGATION_MENU_SUBSCRIPTIONS'];
}
$focus->load_relationship('prospectlists');
$pl_lists = $focus->prospectlists->get();
$pl_tbl = "<p><table align='center' class='list view' width='100%' border='0' cellspacing='1' cellpadding='1'>";
$pl_tbl .= "<tr class='detail view'><td colspan='4'><h4> " . $target_title . " </h4></td></tr>";
$pl_tbl .= "<tr class='listViewHRS1'><td width='50%' scope='col'><b>" . $mod_strings['LBL_LIST_NAME'] . "</b></td><td width='30%' scope='col'><b>" . $mod_strings['LBL_LIST_TYPE'] . "</b></td>";
$pl_tbl .= "<td width='15%' scope='col'><b>" . $mod_strings['LBL_TOTAL_ENTRIES'] . "</b></td><td width='5%' scope='col'> </td></tr>";
if (count($pl_lists) > 0) {
$pl_focus = new ProspectList();
foreach ($pl_lists as $pl_id) {
if ($colorclass == "class='evenListRowS1'") {
$colorclass = "class='oddListRowS1'";
} else {
$colorclass = "class='evenListRowS1'";
}
$pl_focus->retrieve($pl_id);
//set the list type if this is a newsletter
$type = $pl_focus->list_type;
if ($camp_type == 'NewsLetter') {
if ($pl_focus->list_type == 'default' || $pl_focus->list_type == 'seed') {
$type = $mod_strings['LBL_SUBSCRIPTION_TYPE_NAME'];
}
if ($pl_focus->list_type == 'exempt') {
$type = $mod_strings['LBL_UNSUBSCRIPTION_TYPE_NAME'];
}
if ($pl_focus->list_type == 'test') {
$type = $mod_strings['LBL_TEST_TYPE_NAME'];
}
} else {
$type = $app_list_strings['prospect_list_type_dom'][$pl_focus->list_type];
}
if (isset($pl_focus->id) && !empty($pl_focus->id)) {
$pl_tbl .= "<tr {$colorclass}>";
$pl_tbl .= "<td scope='row' width='50%'><a href='index.php?action=DetailView&module=ProspectLists&return_module=Campaigns&return_action=WizardHome&return_id=" . $focus->id . "&record=" . $pl_focus->id . "'>";
$pl_tbl .= $pl_focus->name . "</a></td>";
$pl_tbl .= "<td scope='row' width='30%'>{$type}</td>";
$pl_tbl .= "<td scope='row' width='15%'>" . $pl_focus->get_entry_count() . "</td>";
$pl_tbl .= "<td scope='row' width='5%' align='right'><a href='index.php?action=EditView&module=ProspectLists&return_module=Campaigns&return_action=WizardHome&return_id=" . $focus->id . "&record=" . $pl_focus->id . "'>";
$pl_tbl .= SugarThemeRegistry::current()->getImage('edit_inline', 'border=0', null, null, ".gif", $mod_strings['LBL_EDIT_INLINE']) . "</a> ";
$pl_tbl .= "<a href='index.php?action=DetailView&module=ProspectLists&return_module=Campaigns&return_action=WizardHome&return_id=" . $focus->id . "&record=" . $pl_focus->id . "'>";
$pl_tbl .= SugarThemeRegistry::current()->getImage('view_inline', 'border=0', null, null, ".gif", $mod_strings['LBL_VIEW_INLINE']) . "</a></td>";
}
}
} else {
$pl_tbl .= "<tr><td class='{$colorclass}' scope='row' colspan='2'>" . $mod_strings['LBL_NONE'] . "</td></tr>";
}
$pl_tbl .= "</table></p>";
return $pl_tbl;
}