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