當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。