* actual call records.
* @throws Operator_Exception
*/
- function getRecords($start, $end, $accountcode = null, $dcontext = null,
+ public function getRecords($start, $end, $accountcode = null, $dcontext = null,
$rowstart = 0, $rowlimit = 100)
{
// Start Date
* statistics for calls placed that month.
* @throws Operator_Exception|Horde_Date_Exception
*/
- function getMonthlyCallStats($start, $end, $accountcode = null,
+ public function getMonthlyCallStats($start, $end, $accountcode = null,
$dcontext = null){
if (empty($accountcode) || $accountcode == '%') {
$permentry = 'operator:accountcodes';
* @return Operator_Driver The newly created concrete Operator_Driver
* instance, or false on an error.
*/
- function factory($driver = null, $params = null)
+ public function factory($driver = null, $params = null)
{
if ($driver === null) {
$driver = $GLOBALS['conf']['storage']['driver'];
*
* @var array
*/
- var $_params = array();
+ protected $_params = array();
/**
* Handle for the current database connection.
*
* @var DB
*/
- var $_db;
+ protected $_db;
/**
* Handle for the current database connection, used for writing. Defaults
*
* @var DB
*/
- var $_write_db;
+ protected $_write_db;
/**
* Boolean indicating whether or not we're connected to the SQL server.
*
* @var boolean
*/
- var $_connected = false;
+ protected $_connected = false;
/**
* Constructs a new SQL storage object.
*
* @param array $params A hash containing connection parameters.
*/
- function Operator_Driver_asterisksql($params = array())
+ public function __construct($params = array())
{
$this->_params = $params;
}
* actual call records.
* @throws Operator_Exception|Horde_Date_Exception
*/
- function _getRecords($start, $end, $accountcode = null, $dcontext = null,
+ protected function _getRecords($start, $end, $accountcode = null, $dcontext = null,
$rowstart = 0, $rowlimit = 100)
{
* statistics for calls placed that month.
* @throws Operator_Exception|Horde_Date_Exception
*/
- function _getMonthlyCallStats($start, $end, $accountcode = null,
+ protected function _getMonthlyCallStats($start, $end, $accountcode = null,
$dcontext = null)
{
if (!is_a($start, 'Horde_Date') || !is_a($end, 'Horde_Date')) {
return $stats;
}
- function getAccountCodes()
+ public function getAccountCodes()
{
/* Make sure we have a valid database connection. */
$this->_connect();
*
* @return boolean True on success; exits (Horde::fatal()) on error.
*/
- function _connect()
+ protected function _connect()
{
if ($this->_connected) {
return true;
*
* @return boolean True on success, false on failure.
*/
- function _disconnect()
+ protected function _disconnect()
{
if ($this->_connected) {
$this->_connected = false;