PHP Класс 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.
Автор: Your Name ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

factory() публичный Метод

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.
Результат Operator_Driver The newly created concrete Operator_Driver instance, or false on an error.

getMonthlyCallStats() публичный Метод

Get summary call statistics per-month for a given time range, account and destination.
public getMonthlyCallStats ( $start, $end, $accountcode = null, $dcontext = null ) : array
Результат 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() публичный Метод

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