- removed PHP4 class constructors

release-0.6
alecpl 16 years ago
parent 94edc83cec
commit 95987c3943

@ -58,16 +58,6 @@ class rcube_contacts
$this->ready = $this->db && !$this->db->is_error();
}
/**
* PHP 4 object constructor
*
* @see rcube_contacts::__construct()
*/
function rcube_contacts($dbconn, $user)
{
$this->__construct($dbconn, $user);
}
/**
* Set internal list page

@ -68,17 +68,6 @@ class rcube_db
}
/**
* PHP 4 object constructor
*
* @see rcube_db::__construct
*/
function rcube_db($db_dsnw, $db_dsnr='', $pconn=false)
{
$this->__construct($db_dsnw, $db_dsnr, $pconn);
}
/**
* Connect to specific database
*

@ -80,17 +80,6 @@ class rcube_imap
}
/**
* PHP 4 object constructor
*
* @see rcube_imap::__construct
*/
function rcube_imap($db_conn)
{
$this->__construct($db_conn);
}
/**
* Connect to an IMAP server
*

@ -62,16 +62,6 @@ class rcube_ldap
$this->connect();
}
/**
* PHP 4 object constructor
*
* @see rcube_ldap::__construct()
*/
function rcube_ldap($p)
{
$this->__construct($p);
}
/**
* Establish a connection to the LDAP server

@ -68,17 +68,6 @@ class rcube_mdb2
}
/**
* PHP 4 object constructor
*
* @see rcube_mdb2::__construct
*/
function rcube_db($db_dsnw,$db_dsnr='')
{
$this->__construct($db_dsnw,$db_dsnr);
}
/**
* Connect to specific database
*

@ -39,11 +39,6 @@ class rcube_result_set
$this->first = (int)$f;
}
function rcube_result_set($c=0, $f=0)
{
$this->__construct($c, $f);
}
function add($rec)
{
$this->records[] = $rec;

@ -59,17 +59,7 @@ class rcube_user
}
}
/**
* PHP 4 object constructor
*
* @see rcube_user::__construct
*/
function rcube_user($id = null, $sql_arr = null)
{
$this->__construct($id, $sql_arr);
}
/**
* Build a user name string (as e-mail address)
*

@ -68,16 +68,10 @@ Class utf8{
var $ascMap = array();
var $utfMap = array();
// made PHP5 capable by RoundCube
function __construct($charset="ISO-8859-1"){
$this->loadCharset($charset);
}
//Constructor
function utf8($charset="ISO-8859-1"){
$this->__construct($charset);
}
//Load charset
function loadCharset($charset){
global $utf8_maps;

Loading…
Cancel
Save