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])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
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.