1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
|
<?php
// phpcs:ignoreFile -- this file violates PSR2 by definition
/**
* These classes and functions are deprecated and will be removed in future releases
*
* Note: when adding to this file, please also add appropriate actions to _test/rector.php
*/
use dokuwiki\Debug\DebugHelper;
/**
* @deprecated since 2021-11-11 use \dokuwiki\Remote\IXR\Client instead!
*/
class IXR_Client extends \dokuwiki\Remote\IXR\Client
{
/**
* @inheritdoc
* @deprecated 2021-11-11
*/
public function __construct($server, $path = false, $port = 80, $timeout = 15, $timeout_io = null)
{
DebugHelper::dbgDeprecatedFunction(dokuwiki\Remote\IXR\Client::class);
parent::__construct($server, $path, $port, $timeout, $timeout_io);
}
}
/**
* @deprecated since 2021-11-11 use \IXR\Client\ClientMulticall instead!
*/
class IXR_ClientMulticall extends \IXR\Client\ClientMulticall
{
/**
* @inheritdoc
* @deprecated 2021-11-11
*/
public function __construct($server, $path = false, $port = 80)
{
DebugHelper::dbgDeprecatedFunction(IXR\Client\ClientMulticall::class);
parent::__construct($server, $path, $port);
}
}
/**
* @deprecated since 2021-11-11 use \IXR\Server\Server instead!
*/
class IXR_Server extends \IXR\Server\Server
{
/**
* @inheritdoc
* @deprecated 2021-11-11
*/
public function __construct($callbacks = false, $data = false, $wait = false)
{
DebugHelper::dbgDeprecatedFunction(IXR\Server\Server::class);
parent::__construct($callbacks, $data, $wait);
}
}
/**
* @deprecated since 2021-11-11 use \IXR\Server\IntrospectionServer instead!
*/
class IXR_IntrospectionServer extends \IXR\Server\IntrospectionServer
{
/**
* @inheritdoc
* @deprecated 2021-11-11
*/
public function __construct()
{
DebugHelper::dbgDeprecatedFunction(IXR\Server\IntrospectionServer::class);
parent::__construct();
}
}
/**
* @deprecated since 2021-11-11 use \IXR\Request\Request instead!
*/
class IXR_Request extends \IXR\Request\Request
{
/**
* @inheritdoc
* @deprecated 2021-11-11
*/
public function __construct($method, $args)
{
DebugHelper::dbgDeprecatedFunction(IXR\Request\Request::class);
parent::__construct($method, $args);
}
}
/**
* @deprecated since 2021-11-11 use \IXR\Message\Message instead!
*/
class IXR_Message extends IXR\Message\Message
{
/**
* @inheritdoc
* @deprecated 2021-11-11
*/
public function __construct($message)
{
DebugHelper::dbgDeprecatedFunction(IXR\Message\Message::class);
parent::__construct($message);
}
}
/**
* @deprecated since 2021-11-11 use \IXR\Message\Error instead!
*/
class IXR_Error extends \IXR\Message\Error
{
/**
* @inheritdoc
* @deprecated 2021-11-11
*/
public function __construct($code, $message)
{
DebugHelper::dbgDeprecatedFunction(IXR\Message\Error::class);
parent::__construct($code, $message);
}
}
/**
* @deprecated since 2021-11-11 use \IXR\DataType\Date instead!
*/
class IXR_Date extends \IXR\DataType\Date
{
/**
* @inheritdoc
* @deprecated 2021-11-11
*/
public function __construct($time)
{
DebugHelper::dbgDeprecatedFunction(IXR\DataType\Date::class);
parent::__construct($time);
}
}
/**
* @deprecated since 2021-11-11 use \IXR\DataType\Base64 instead!
*/
class IXR_Base64 extends \IXR\DataType\Base64
{
/**
* @inheritdoc
* @deprecated 2021-11-11
*/
public function __construct($data)
{
DebugHelper::dbgDeprecatedFunction(IXR\DataType\Base64::class);
parent::__construct($data);
}
}
/**
* @deprecated since 2021-11-11 use \IXR\DataType\Value instead!
*/
class IXR_Value extends \IXR\DataType\Value
{
/**
* @inheritdoc
* @deprecated 2021-11-11
*/
public function __construct($data, $type = null)
{
DebugHelper::dbgDeprecatedFunction(IXR\DataType\Value::class);
parent::__construct($data, $type);
}
}
/**
* print a newline terminated string
*
* You can give an indention as optional parameter
*
* @author Andreas Gohr <andi@splitbrain.org>
*
* @param string $string line of text
* @param int $indent number of spaces indention
* @deprecated 2023-08-31 use echo instead
*/
function ptln($string, $indent = 0)
{
DebugHelper::dbgDeprecatedFunction('echo');
echo str_repeat(' ', $indent) . "$string\n";
}
|