当前位置: 首页>>代码示例>>PHP>>正文


PHP Campaign::byOutbound方法代码示例

本文整理汇总了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";
开发者ID:avinaszh,项目名称:vicidial-agent-reporting,代码行数:31,代码来源:outboundCallsByAgentYesterday.php

示例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";
开发者ID:avinaszh,项目名称:vicidial-agent-reporting,代码行数:31,代码来源:outboundCallsByDispoYesterday.php


注:本文中的Campaign::byOutbound方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。