\Operator_Driver

Operator_Driver:: defines an API for implementing storage backends for Operator.

Copyright 2007-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.

Summary

Methods
Properties
Constants
getRecords()
getMonthlyCallStats()
factory()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getRecords()

getRecords(  $start,   $end,   $accountcode = null,   $dcontext = null,   $rowstart,   $rowlimit = 100) : array

Search the database for call detail records, taking permissions into consideration.

Parameters

$start
$end
$accountcode
$dcontext
$rowstart
$rowlimit

Throws

\Operator_Exception

Returns

array —

[0] contains summary statistics; [1] is an array of the actual call records.

getMonthlyCallStats()

getMonthlyCallStats(  $start,   $end,   $accountcode = null,   $dcontext = null) : array

Get summary call statistics per-month for a given time range, account and destination.

Parameters

$start
$end
$accountcode
$dcontext

Throws

\Operator_Exception|\Horde_Date_Exception

Returns

array —

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()

factory(string  $driver = null, array  $params = null) : \Operator_Driver

Attempts to return a concrete Operator_Driver instance based on $driver.

Parameters

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.

Returns

\Operator_Driver

The newly created concrete Operator_Driver instance, or false on an error.