當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Campaign::byInbound方法代碼示例

本文整理匯總了PHP中Campaign::byInbound方法的典型用法代碼示例。如果您正苦於以下問題:PHP Campaign::byInbound方法的具體用法?PHP Campaign::byInbound怎麽用?PHP Campaign::byInbound使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Campaign的用法示例。


在下文中一共展示了Campaign::byInbound方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Campaign

<?php

require "../config.php";
$camp = @$_GET['camp'] != "" ? $_GET['camp'] : 'CS';
$data = new Campaign($camp);
$yday_start = mktime(0, 0, 0) - 24 * 3600;
$yday_end = mktime(23, 59, 59) - 24 * 3600;
$data->setTimePeriod($yday_start, $yday_end);
echo "<h1>Data For Campaign: " . $camp . "</h1>\n";
print_r($data->byInbound()->fetchCallTimes()->byQueue('BUYM_CS')->byAgent('lrobinson')->byDispo('XFER2S')->getAVGWaitTime());
開發者ID:avinaszh,項目名稱:vicidial-agent-reporting,代碼行數:10,代碼來源:callTimes.php

示例2: Campaign

<?php

require "../config.php";
$camp = @$_GET['camp'] != "" ? $_GET['camp'] : 'CS';
$data = new Campaign($camp);
$yday_start = mktime(0, 0, 0) - 24 * 3600;
$yday_end = mktime(23, 59, 59) - 24 * 3600;
$data->setTimePeriod($yday_start, $yday_end);
echo "<h1>Data For Campaign: " . $camp . "</h1>\n";
$queues = $data->byInbound()->queues;
if (($key = array_search("AGENTDIRECT", $queues)) !== false) {
    unset($queues[$key]);
}
foreach ($queues as $queue) {
    echo "<h2>Queue: " . $queue . "</h2>\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->byInbound()->byQueue($queue)->getTotalAnswered();
    foreach ($data->byInbound()->byQueue($queue)->getTotalByDispo() as $d => $c) {
開發者ID:avinaszh,項目名稱:vicidial-agent-reporting,代碼行數:31,代碼來源:inboundHandledByDispoByQueueYesterday.php

示例3: gmdate

    <tr>
        <th>Agent Name</th>
        <th>Calls Answered</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->byInbound()->byQueue($data->byInbound()->queues)->getTotalAnswered() . "</td>\n";
    echo "<td>" . gmdate("H:i:s", (int) $data->byInbound()->fetchCallTimes()->getAVGTalkTime()) . "</td>\n";
    echo "<td>" . gmdate("H:i:s", (int) $data->byInbound()->fetchCallTimes()->getAVGHoldTime()) . "</td>\n";
    echo "<td>" . gmdate("H:i:s", (int) $data->byInbound()->fetchCallTimes()->getAVGDispoTime()) . "</td>\n";
    echo "<td>" . gmdate("H:i:s", (int) $data->byInbound()->fetchCallTimes()->getAVGDeadTime()) . "</td>\n";
    echo "<td>" . gmdate("H:i:s", (int) $data->byInbound()->fetchCallTimes()->getAVGHandleTime()) . "</td>\n";
    echo "<td>" . gmdate("H:i:s", (int) $data->byInbound()->fetchCallTimes()->getAVGWrapTime()) . "</td>\n";
    echo "</tr>\n";
}
$data->setAgent(NULL);
echo "<tr>\n";
echo "<td><b>Total</b></td>\n";
echo "<td>" . $data->byInbound()->byQueue($data->byInbound()->queues)->getTotalAnswered() . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byInbound()->fetchCallTimes()->getAVGTalkTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byInbound()->fetchCallTimes()->getAVGHoldTime()) . "</td>\n";
echo "<td>" . gmdate("H:i:s", (int) $data->byInbound()->fetchCallTimes()->getAVGDispoTime()) . "</td>\n";
開發者ID:avinaszh,項目名稱:vicidial-agent-reporting,代碼行數:31,代碼來源:inboundCallsByAgentYesterday.php

示例4: Campaign

<?php

require "../config.php";
$camp = @$_GET['camp'] != "" ? $_GET['camp'] : 'CS';
$data = new Campaign($camp);
$yday_start = mktime(0, 0, 0) - 24 * 3600;
$yday_end = mktime(23, 59, 59) - 24 * 3600;
$data->setTimePeriod($yday_start, $yday_end);
echo "<h1>Data For Campaign: " . $camp . "</h1>\n";
foreach ($data->byInbound()->queues as $queue) {
    echo "<h2>Queue Data: " . $queue . "</h2>\n";
    echo "Total Calls: " . $data->byInbound()->byQueue($queue)->getTotal() . "<br />\n";
    echo "Total Direct Calls: " . $data->byInbound()->byQueue($queue)->getTotalDirect() . "<br />\n";
    echo "<br />\n";
    echo "Offered Calls: " . $data->byInbound()->byQueue($queue)->getTotalOffered() . "<br />\n";
    echo "Direct Offered Calls: " . $data->byInbound()->byQueue($queue)->getTotalDirectOffered() . "<br />\n";
    echo "<br />\n";
    echo "Calls Answered: " . $data->byInbound()->byQueue($queue)->getTotalAnswered() . "<br />\n";
    echo "Direct Calls Answered: " . $data->byInbound()->byQueue($queue)->getTotalDirectAnswered() . "<br />\n";
    echo "<br />\n";
    echo "Out of Hours: " . $data->byInbound()->byQueue($queue)->getTotalOOH() . "<br />\n";
    echo "Direct Out of Hours: " . $data->byInbound()->byQueue($queue)->getTotalDirectOOH() . "<br />\n";
    echo "<br />\n";
    echo "Dropped Calls: " . $data->byInbound()->byQueue($queue)->getTotalDrop() . "<br />\n";
    echo "Direct Calls Dropped: " . $data->byInbound()->byQueue($queue)->getTotalDirectDrop() . "<br />\n";
    echo "<br />\n";
    echo "<b>Calls By DISPO</b><br />\n";
    dispo_table($data->byInbound()->byQueue($queue)->getTotalByDispo());
    echo "<br />\n";
    echo "<b>Direct Calls By DISPO</b><br />\n";
    dispo_table($data->byInbound()->byQueue($queue)->getTotalDirectByDispo());
開發者ID:avinaszh,項目名稱:vicidial-agent-reporting,代碼行數:31,代碼來源:inboundByCampaignYesterday.php

示例5: gmdate

        <th>Calls Offered</th>
        <th>Direct Offered</th>
        <th>Direct %</th>
        <th>Calls Answered</th>
        <th>% Answered</th>
        <th>% SLA of Ans</th>
        <th>OOH</th>
        <th>% OOH</th>
        <th>Drop</th>
        <th>% Drop</th>
        <th>Avg Handle</th>
        <th>Avg Wait</th>
        <th>Avg Wrap</th>
    </tr>
    <?php 
foreach ($data->byInbound()->queues as $queue) {
    echo "<tr>\n";
    echo "<td>" . $data->fetchData()->getQueueName($queue) . "</td>\n";
    echo "<td>" . $data->byInbound()->byQueue($queue)->getTotalOffered() . "</td>\n";
    echo "<td>" . $data->byInbound()->byQueue($queue)->getTotalDirectOffered() . "</td>\n";
    echo "<td>" . @round($data->byInbound()->byQueue($queue)->getTotalDirectOffered() / $data->byInbound()->byQueue($queue)->getTotalOffered() * 100) . "%</td>\n";
    echo "<td>" . $data->byInbound()->byQueue($queue)->getTotalAnswered() . "</td>\n";
    echo "<td>" . @round($data->byInbound()->byQueue($queue)->getTotalAnswered() / $data->byInbound()->byQueue($queue)->getTotalOffered() * 100) . "%</td>\n";
    echo "<td>N/A</td>\n";
    echo "<td>" . $data->byInbound()->byQueue($queue)->getTotalOOH() . "</td>\n";
    echo "<td>" . @round($data->byInbound()->byQueue($queue)->getTotalOOH() / $data->byInbound()->byQueue($queue)->getTotal() * 100) . "%</td>\n";
    echo "<td>" . $data->byInbound()->byQueue($queue)->getTotalDrop() . "</td>\n";
    echo "<td>" . @round($data->byInbound()->byQueue($queue)->getTotalDrop() / $data->byInbound()->byQueue($queue)->getTotalOffered() * 100) . "%</td>\n";
    echo "<td>" . gmdate("H:i:s", (int) $data->byInbound()->fetchCallTimes()->byQueue($queue)->getAVGHandleTime()) . "</td>\n";
    echo "<td>" . gmdate("H:i:s", (int) $data->byInbound()->fetchCallTimes()->byQueue($queue)->getAVGWaitTime()) . "</td>\n";
    echo "<td>" . gmdate("H:i:s", (int) $data->byInbound()->fetchCallTimes()->byQueue($queue)->getAVGWrapTime()) . "</td>\n";
開發者ID:avinaszh,項目名稱:vicidial-agent-reporting,代碼行數:31,代碼來源:callsByBrandYesterday.php


注:本文中的Campaign::byInbound方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。