本文整理汇总了PHP中Campaign::byOutbound方法的典型用法代码示例。如果您正苦于以下问题:PHP Campaign::byOutbound方法的具体用法?PHP Campaign::byOutbound怎么用?PHP Campaign::byOutbound使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Campaign
的用法示例。
在下文中一共展示了Campaign::byOutbound方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gmdate
<tr>
<th>Agent Name</th>
<th>Calls Make</th>
<th>Average Talk Time</th>
<th>Average Park Time</th>
<th>Average Dispo Time</th>
<th>Average Dead Time</th>
<th>Average Handle Time</th>
<th>Average Wrap Time</th>
</tr>
<?php
foreach ($data->fetchData()->getAgents() as $agent) {
$data->setAgent($agent);
echo "<tr>\n";
echo "<td>" . $agent . "</td>\n";
echo "<td>" . $data->byOutbound()->getTotal() . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->getAVGTalkTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->getAVGHoldTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->getAVGDispoTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->getAVGDeadTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->getAVGHandleTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->getAVGWrapTime()) . "</td>\n";
echo "</tr>\n";
}
$data->setAgent(NULL);
echo "<tr>\n";
echo "<td><b>Total</b></td>\n";
echo "<td>" . $data->byOutbound()->getTotal() . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->getAVGTalkTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->getAVGHoldTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->getAVGDispoTime()) . "</td>\n";
示例2: gmdate
echo "<h1>Data For Campaign: " . $camp . "</h1>\n";
?>
<table border="1">
<tr>
<th>Dispo Name</th>
<th>Total Calls</th>
<th>Percentage of Total</th>
<th>Average Talk Time</th>
<th>Average Hold Time</th>
<th>Average Dispo Time</th>
<th>Average Dead Time</th>
<th>Average Handle Time</th>
<th>Average Wrap Time</th>
</tr>
<?php
$total = $data->byOutbound()->getTotal();
foreach ($data->byOutbound()->getTotalByDispo() as $d => $c) {
echo "<tr>\n";
echo "<td>" . $data->fetchData()->getDispoName($d) . "</td>\n";
echo "<td>" . $c . "</td>\n";
echo "<td>" . @round($c / $total * 100) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->byDispo($d)->getAVGTalkTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->byDispo($d)->getAVGHoldTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->byDispo($d)->getAVGDispoTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->byDispo($d)->getAVGDeadTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->byDispo($d)->getAVGHandleTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byOutbound()->fetchCallTimes()->byDispo($d)->getAVGWrapTime()) . "</td>\n";
echo "</tr>\n";
}
echo "<tr>\n";
echo "<td><b>Total</b></td>\n";