alecpl
2008-08-21 95987c3943bed445555c0dc84986a56792f7ac4c
- removed PHP4 class constructors


8 files modified
76 ■■■■■ changed files
program/include/rcube_contacts.php 10 ●●●●● patch | view | raw | blame | history
program/include/rcube_db.php 11 ●●●●● patch | view | raw | blame | history
program/include/rcube_imap.php 11 ●●●●● patch | view | raw | blame | history
program/include/rcube_ldap.php 10 ●●●●● patch | view | raw | blame | history
program/include/rcube_mdb2.php 11 ●●●●● patch | view | raw | blame | history
program/include/rcube_result_set.php 5 ●●●●● patch | view | raw | blame | history
program/include/rcube_user.php 12 ●●●●● patch | view | raw | blame | history
program/lib/utf8.class.php 6 ●●●●● patch | view | raw | blame | history
program/include/rcube_contacts.php
@@ -58,16 +58,6 @@
    $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
program/include/rcube_db.php
@@ -69,17 +69,6 @@
  /**
   * 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
   *
   * @param  string  DSN for DB connections
program/include/rcube_imap.php
@@ -81,17 +81,6 @@
  /**
   * PHP 4 object constructor
   *
   * @see  rcube_imap::__construct
   */
  function rcube_imap($db_conn)
    {
    $this->__construct($db_conn);
    }
  /**
   * Connect to an IMAP server
   *
   * @param  string   Host to connect
program/include/rcube_ldap.php
@@ -62,16 +62,6 @@
    $this->connect();
  }
  /**
   * PHP 4 object constructor
   *
   * @see  rcube_ldap::__construct()
   */
  function rcube_ldap($p)
  {
    $this->__construct($p);
  }
  /**
   * Establish a connection to the LDAP server
program/include/rcube_mdb2.php
@@ -69,17 +69,6 @@
  /**
   * 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
   *
   * @param  string  DSN for DB connections
program/include/rcube_result_set.php
@@ -39,11 +39,6 @@
    $this->first = (int)$f;
  }
  
  function rcube_result_set($c=0, $f=0)
  {
    $this->__construct($c, $f);
  }
  function add($rec)
  {
    $this->records[] = $rec;
program/include/rcube_user.php
@@ -59,17 +59,7 @@
    }
  }
  /**
   * 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)
   *
program/lib/utf8.class.php
@@ -68,16 +68,10 @@
  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;