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';
public function Browser($userAgent = "")
public function __construct($userAgent = "")
{
$this->reset();
if ($userAgent != "") {

@ -2059,7 +2059,7 @@ class HTML_QuickForm_Error extends PEAR_Error
* Prefix for all error messages
* @var string
*/
var $error_message_prefix = 'QuickForm Error: ';
public $error_message_prefix = 'QuickForm Error: ';
/**
* 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 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)
{
if (is_int($code)) {

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

@ -83,7 +83,8 @@
* @version Release: @package_version@
* @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
@ -162,7 +163,7 @@ class HTML_Table extends HTML_Common {
* <tbody> or not
* @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);
$this->_useTGroups = (boolean)$useTGroups;

Loading…
Cancel
Save