Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 7.2 #86

Open
wants to merge 1 commit into
base: pilot
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion html/class/Archive_Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Archive_Zip
* @param string $p_zipname The name of the zip archive to create
* @access public
*/
public function Archive_Zip($p_zipname)
public function __construct($p_zipname)
{

// ----- Check the zlib
Expand Down
2 changes: 1 addition & 1 deletion html/class/class.tar.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class tar
/**
* Class Constructor -- Does nothing...
*/
public function tar()
public function __construct()
{
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion html/class/commentrenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class XoopsCommentRenderer
* @param boolean $use_icons
* @param boolean $do_iconcheck
**/
public function XoopsCommentRenderer(&$tpl, $use_icons = true, $do_iconcheck = false)
public function __construct(&$tpl, $use_icons = true, $do_iconcheck = false)
{
$this->_tpl =& $tpl;
$this->_useIcons = $use_icons;
Expand Down
6 changes: 3 additions & 3 deletions html/class/criteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class CriteriaElement
/**
* Constructor
**/
public function CriteriaElement()
public function __construct()
{
}

Expand Down Expand Up @@ -330,7 +330,7 @@ class CriteriaCompo extends CriteriaElement
* @param object $ele
* @param string $condition
**/
public function CriteriaCompo($ele=null, $condition='AND')
public function __construct($ele=null, $condition='AND')
{
if (isset($ele) && is_object($ele)) {
$this->add($ele, $condition);
Expand Down Expand Up @@ -465,7 +465,7 @@ class Criteria extends CriteriaElement
* @param string $value
* @param string $operator
**/
public function Criteria($column, $value='', $operator='=', $prefix = '', $function = '')
public function __construct($column, $value='', $operator='=', $prefix = '', $function = '')
{
$this->prefix = $prefix;
$this->function = $function;
Expand Down
2 changes: 1 addition & 1 deletion html/class/database/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class XoopsDatabase
*
* will always fail, because this is an abstract class!
*/
public function XoopsDatabase()
public function __construct()
{
// exit("Cannot instantiate this class directly");
}
Expand Down
2 changes: 1 addition & 1 deletion html/class/database/databasefactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class XoopsDatabaseFactory
{

public function XoopsDatabaseFactory()
public function __construct()
{
}

Expand Down
2 changes: 1 addition & 1 deletion html/class/downloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class XoopsDownloader
/**
* Constructor
*/
public function XoopsDownloader()
public function __construct()
{
//EMPTY
}
Expand Down
2 changes: 1 addition & 1 deletion html/class/errorhandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class XoopsErrorHandler
* registering an error handler, the setting or 'error_reporting' is
* ignored and *everything* is trapped.
*/
public function XoopsErrorHandler()
public function __construct()
{
set_error_handler('XoopsErrorHandler_HandleError');
register_shutdown_function('XoopsErrorHandler_Shutdown');
Expand Down
2 changes: 1 addition & 1 deletion html/class/logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class XoopsLogger
*
* @access private
*/
public function XoopsLogger()
public function __construct()
{
}

Expand Down
2 changes: 1 addition & 1 deletion html/class/module.textsanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class MyTextSanitizer
*
* @todo Sofar, this does nuttin' ;-)
*/
public function MyTextSanitizer()
public function __construct()
{
$this->mMakeClickablePostFilter =new XCube_Delegate();
$this->mMakeClickablePostFilter->register('MyTextSanitizer.MakeClickablePostFilter');
Expand Down
2 changes: 1 addition & 1 deletion html/class/tardownloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class XoopsTarDownloader extends XoopsDownloader
* @param string $ext file extension
* @param string $mimyType Mimetype
**/
public function XoopsTarDownloader($ext = '.tar.gz', $mimyType = 'application/x-gzip')
public function __construct($ext = '.tar.gz', $mimyType = 'application/x-gzip')
{
$this->archiver = new tar();
$this->ext = trim($ext);
Expand Down
2 changes: 1 addition & 1 deletion html/class/token.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class XoopsToken
* @param $name this token's name string.
* @param $timeout effective time(if $timeout equal 0, this token will become unlimited)
*/
public function XoopsToken($name, $timeout = XOOPS_TOKEN_TIMEOUT)
public function __construct($name, $timeout = XOOPS_TOKEN_TIMEOUT)
{
$this->_name_ = $name;

Expand Down
2 changes: 1 addition & 1 deletion html/class/tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class XoopsObjectTree
* @param string $parentId field name of parent object ID
* @param string $rootId field name of root object ID
**/
public function XoopsObjectTree(&$objectArr, $myId, $parentId, $rootId = null)
public function __construct(&$objectArr, $myId, $parentId, $rootId = null)
{
$this->_objects =& $objectArr;
$this->_myId = $myId;
Expand Down
2 changes: 1 addition & 1 deletion html/class/uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class XoopsMediaUploader
* @param int $maxHeight
* @param int $cmodvalue
**/
public function XoopsMediaUploader($uploadDir, $allowedMimeTypes, $maxFileSize=0, $maxWidth=null, $maxHeight=null)
public function __construct($uploadDir, $allowedMimeTypes, $maxFileSize=0, $maxWidth=null, $maxHeight=null)
{
@$this->extensionToMime = include(XOOPS_ROOT_PATH . '/class/mimetypes.inc.php');
if (!is_array($this->extensionToMime)) {
Expand Down
2 changes: 1 addition & 1 deletion html/class/xml/rpc/xmlrpcapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class XoopsXmlRpcApi



public function XoopsXmlRpcApi(&$params, &$response, &$module)
public function __construct(&$params, &$response, &$module)
{
$this->params =& $params;
$this->response =& $response;
Expand Down
2 changes: 1 addition & 1 deletion html/class/xml/rpc/xmlrpcparser.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class XoopsXmlRpcParser extends SaxParser
* @author
* @see
*/
public function XoopsXmlRpcParser(&$input)
public function __construct(&$input)
{
$this->SaxParser($input);
$this->addTagHandler(new RpcMethodNameHandler());
Expand Down
24 changes: 12 additions & 12 deletions html/class/xml/rpc/xmlrpctag.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class XoopsXmlRpcDocument

public $_tags = array();

public function XoopsXmlRpcDocument()
public function __construct()
{
}

Expand Down Expand Up @@ -70,7 +70,7 @@ class XoopsXmlRpcRequest extends XoopsXmlRpcDocument

public $methodName;

public function XoopsXmlRpcRequest($methodName)
public function __construct($methodName)
{
$this->methodName = trim($methodName);
}
Expand All @@ -91,7 +91,7 @@ class XoopsXmlRpcTag

public $_fault = false;

public function XoopsXmlRpcTag()
public function __construct()
{
}

Expand Down Expand Up @@ -122,7 +122,7 @@ class XoopsXmlRpcFault extends XoopsXmlRpcTag
public $_code;
public $_extra;

public function XoopsXmlRpcFault($code, $extra = null)
public function __construct($code, $extra = null)
{
$this->setFault(true);
$this->_code = intval($code);
Expand Down Expand Up @@ -179,7 +179,7 @@ class XoopsXmlRpcInt extends XoopsXmlRpcTag

public $_value;

public function XoopsXmlRpcInt($value)
public function __construct($value)
{
$this->_value = intval($value);
}
Expand All @@ -195,7 +195,7 @@ class XoopsXmlRpcDouble extends XoopsXmlRpcTag

public $_value;

public function XoopsXmlRpcDouble($value)
public function __construct($value)
{
$this->_value = (float)$value;
}
Expand All @@ -211,7 +211,7 @@ class XoopsXmlRpcBoolean extends XoopsXmlRpcTag

public $_value;

public function XoopsXmlRpcBoolean($value)
public function __construct($value)
{
$this->_value = (!empty($value) && $value != false) ? 1 : 0;
}
Expand All @@ -227,7 +227,7 @@ class XoopsXmlRpcString extends XoopsXmlRpcTag

public $_value;

public function XoopsXmlRpcString($value)
public function __construct($value)
{
$this->_value = strval($value);
}
Expand All @@ -243,7 +243,7 @@ class XoopsXmlRpcDatetime extends XoopsXmlRpcTag

public $_value;

public function XoopsXmlRpcDatetime($value)
public function __construct($value)
{
if (!is_numeric($value)) {
$this->_value = strtotime($value);
Expand All @@ -263,7 +263,7 @@ class XoopsXmlRpcBase64 extends XoopsXmlRpcTag

public $_value;

public function XoopsXmlRpcBase64($value)
public function __construct($value)
{
$this->_value = base64_encode($value);
}
Expand All @@ -279,7 +279,7 @@ class XoopsXmlRpcArray extends XoopsXmlRpcTag

public $_tags = array();

public function XoopsXmlRpcArray()
public function __construct()
{
}

Expand All @@ -305,7 +305,7 @@ class XoopsXmlRpcStruct extends XoopsXmlRpcTag

public $_tags = array();

public function XoopsXmlRpcStruct()
public function __construct()
{
}

Expand Down
Loading