Class Operator_Driver
Operator_Driver:: defines an API for implementing storage backends for
Operator.
Copyright 2007-2012 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.
Methods summary
public
array
|
#
getRecords( mixed $start, mixed $end, mixed $accountcode = null, mixed $dcontext = null, mixed $rowstart = 0, mixed $rowlimit = 100 )
Search the database for call detail records, taking permissions into
consideration.
Search the database for call detail records, taking permissions into
consideration.
Returns
array [0] contains summary statistics; [1] is an array of the
actual call records.
Throws
|
public
array
|
#
getMonthlyCallStats( Horde_Date $start, Horde_Date $end, string $accountcode = null, string $dcontext = null )
Get summary call statistics per-month for a given time range, account and
destination.
Get summary call statistics per-month for a given time range, account and
destination.
Parameters
- $start
- Start of the statistics window
- $end
- End of the statistics window
- $accountcode
- <p>Name of the accont for statistics. Defaults
to null meaning all accounts.</p>
- $dcontext
- Destination of calls. Defaults to null.
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.
Throws
|
public
Operator_Driver
|
#
factory( string $driver = null, array $params = null )
Attempts to return a concrete Operator_Driver instance based on $driver.
Attempts to return a concrete Operator_Driver instance based on $driver.
Parameters
- $driver
- <p>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.</p>
- $params
- <p>A hash containing any additional configuration
or connection parameters a subclass might need.</p>
Returns
Operator_Driver
The newly created concrete Operator_Driver
instance, or false on an error.
|