PHP Class Operator_Driver, horde

Copyright 2007-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Author: Your Name ([email protected])
Mostrar archivo Open project: horde/horde Class Usage Examples

Public Methods

Method Description
factory ( string $driver = null, array $params = null ) : Operator_Driver Attempts to return a concrete Operator_Driver instance based on $driver.
getMonthlyCallStats ( $start, $end, $accountcode = null, $dcontext = null ) : array Get summary call statistics per-month for a given time range, account and destination.
getRecords ( $start, $end, $accountcode = null, $dcontext = null, $rowstart, $rowlimit = 100 ) : array Search the database for call detail records, taking permissions into consideration.

Method Details

factory() public method

Attempts to return a concrete Operator_Driver instance based on $driver.
public factory ( string $driver = null, array $params = null ) : Operator_Driver
$driver string 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.
$params array A hash containing any additional configuration or connection parameters a subclass might need.
return Operator_Driver The newly created concrete Operator_Driver instance, or false on an error.

getMonthlyCallStats() public method

Get summary call statistics per-month for a given time range, account and destination.
public getMonthlyCallStats ( $start, $end, $accountcode = null, $dcontext = null ) : array
return 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.

getRecords() public method

Search the database for call detail records, taking permissions into consideration.
public getRecords ( $start, $end, $accountcode = null, $dcontext = null, $rowstart, $rowlimit = 100 ) : array
return array [0] contains summary statistics; [1] is an array of the actual call records.