Use __construct

1.10.x
jmontoyaa 10 years ago
parent 940fbdd51c
commit 7f42c3251a
  1. 2
      main/inc/lib/browser/Browser.php
  2. 4
      main/inc/lib/pear/HTML/QuickForm.php
  3. 2
      main/inc/lib/pear/HTML/QuickForm/header.php
  4. 5
      main/inc/lib/pear/HTML/Table.php

@ -109,7 +109,7 @@ class Browser
const OPERATING_SYSTEM_UNKNOWN = 'unknown'; const OPERATING_SYSTEM_UNKNOWN = 'unknown';
public function Browser($userAgent = "") public function __construct($userAgent = "")
{ {
$this->reset(); $this->reset();
if ($userAgent != "") { if ($userAgent != "") {

@ -2059,7 +2059,7 @@ class HTML_QuickForm_Error extends PEAR_Error
* Prefix for all error messages * Prefix for all error messages
* @var string * @var string
*/ */
var $error_message_prefix = 'QuickForm Error: '; public $error_message_prefix = 'QuickForm Error: ';
/** /**
* Creates a quickform error object, extending the PEAR_Error class * Creates a quickform error object, extending the PEAR_Error class
@ -2069,7 +2069,7 @@ class HTML_QuickForm_Error extends PEAR_Error
* @param int $level intensity of the error (PHP error code) * @param int $level intensity of the error (PHP error code)
* @param mixed $debuginfo any information that can inform user as to nature of the error * @param mixed $debuginfo any information that can inform user as to nature of the error
*/ */
function HTML_QuickForm_Error($code = QUICKFORM_ERROR, $mode = PEAR_ERROR_RETURN, public function __construct($code = QUICKFORM_ERROR, $mode = PEAR_ERROR_RETURN,
$level = E_USER_NOTICE, $debuginfo = null) $level = E_USER_NOTICE, $debuginfo = null)
{ {
if (is_int($code)) { if (is_int($code)) {

@ -42,7 +42,7 @@ class HTML_QuickForm_header extends HTML_QuickForm_static
* @access public * @access public
* @return void * @return void
*/ */
function HTML_QuickForm_header($elementName = null, $text = null) public function __construct($elementName = null, $text = null)
{ {
if (!empty($elementName)) { if (!empty($elementName)) {
$text = $elementName; $text = $elementName;

@ -83,7 +83,8 @@
* @version Release: @package_version@ * @version Release: @package_version@
* @link http://pear.php.net/package/HTML_Table * @link http://pear.php.net/package/HTML_Table
*/ */
class HTML_Table extends HTML_Common { class HTML_Table extends HTML_Common
{
/** /**
* Value to insert into empty cells. This is used as a default for * Value to insert into empty cells. This is used as a default for
@ -162,7 +163,7 @@ class HTML_Table extends HTML_Common {
* <tbody> or not * <tbody> or not
* @access public * @access public
*/ */
function HTML_Table($attributes = null, $tabOffset = 0, $useTGroups = false) public function __construct($attributes = null, $tabOffset = 0, $useTGroups = false)
{ {
parent::__construct($attributes, (int)$tabOffset); parent::__construct($attributes, (int)$tabOffset);
$this->_useTGroups = (boolean)$useTGroups; $this->_useTGroups = (boolean)$useTGroups;

Loading…
Cancel
Save