PHP 클래스 Operator_Driver_asterisksql, horde

The table structure can be created by the scripts/sql/operator_foo.sql script. Copyright 2008-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])
상속: extends Operator_Driver
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_connected boolean Boolean indicating whether or not we're connected to the SQL server.
$_db DB Handle for the current database connection.
$_params array Hash containing connection parameters.
$_write_db DB Handle for the current database connection, used for writing. Defaults to the same handle as $_db if a separate write database is not required.

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructs a new SQL storage object.
getAccountCodes ( )

보호된 메소드들

메소드 설명
_connect ( ) : boolean Attempts to open a connection to the SQL server.
_disconnect ( ) : boolean Disconnects from the SQL server and cleans up the connection.
_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 = null ) : array Get call detail records from the database

메소드 상세

__construct() 공개 메소드

Constructs a new SQL storage object.
public __construct ( array $params = [] )
$params array A hash containing connection parameters.

_connect() 보호된 메소드

Attempts to open a connection to the SQL server.
protected _connect ( ) : boolean
리턴 boolean True on success.

_disconnect() 보호된 메소드

Disconnects from the SQL server and cleans up the connection.
protected _disconnect ( ) : boolean
리턴 boolean True on success, false on failure.

_getMonthlyCallStats() 보호된 메소드

Get summary call statistics per-month for a given time range, account and destination.
protected _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() 보호된 메소드

Get call detail records from the database
protected _getRecords ( $start, $end, $accountcode = null, $dcontext = null, $rowstart, $rowlimit = null ) : array
리턴 array [0] contains summary statistics; [1] is an array of the actual call records.

getAccountCodes() 공개 메소드

public getAccountCodes ( )

프로퍼티 상세

$_connected 보호되어 있는 프로퍼티

Boolean indicating whether or not we're connected to the SQL server.
protected bool $_connected
리턴 boolean

$_db 보호되어 있는 프로퍼티

Handle for the current database connection.
protected DB $_db
리턴 DB

$_params 보호되어 있는 프로퍼티

Hash containing connection parameters.
protected array $_params
리턴 array

$_write_db 보호되어 있는 프로퍼티

Handle for the current database connection, used for writing. Defaults to the same handle as $_db if a separate write database is not required.
protected DB $_write_db
리턴 DB