$_params
$_params : array
Hash containing connection parameters.
Operator storage implementation for PHP's PEAR database abstraction layer.
The table structure can be created by the scripts/sql/operator_foo.sql script.
Copyright 2008-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
getRecords( $start, $end, $accountcode = null, $dcontext = null, $rowstart, $rowlimit = 100) : array
Search the database for call detail records, taking permissions into consideration.
$start | ||
$end | ||
$accountcode | ||
$dcontext | ||
$rowstart | ||
$rowlimit |
[0] contains summary statistics; [1] is an array of the actual call records.
getMonthlyCallStats( $start, $end, $accountcode = null, $dcontext = null) : array
Get summary call statistics per-month for a given time range, account and destination.
$start | ||
$end | ||
$accountcode | ||
$dcontext |
Array of call statistics. The key of each element is the month name in date('Y-m') format and the value being an array of statistics for calls placed that month.
factory(string $driver = null, array $params = null) : \Operator_Driver
Attempts to return a concrete Operator_Driver instance based on $driver.
string | $driver | The type of the concrete Operator_Driver subclass to return. The class name is based on the storage driver ($driver). The code is dynamically included. |
array | $params | A hash containing any additional configuration or connection parameters a subclass might need. |
The newly created concrete Operator_Driver instance, or false on an error.
_getRecords( $start, $end, $accountcode = null, $dcontext = null, $rowstart, $rowlimit = null) : array
Get call detail records from the database
$start | ||
$end | ||
$accountcode | ||
$dcontext | ||
$rowstart | ||
$rowlimit |
[0] contains summary statistics; [1] is an array of the actual call records.
_getMonthlyCallStats( $start, $end, $accountcode = null, $dcontext = null) : array
Get summary call statistics per-month for a given time range, account and destination.
$start | ||
$end | ||
$accountcode | ||
$dcontext |
Array of call statistics. The key of each element is the month name in date('Y-m') format and the value being an array of statistics for calls placed that month.