deprecated.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722
  1. <?php
  2. // phpcs:ignoreFile -- this file violates PSR2 by definition
  3. /**
  4. * These classes and functions are deprecated and will be removed in future releases
  5. */
  6. use dokuwiki\Debug\DebugHelper;
  7. use dokuwiki\Subscriptions\BulkSubscriptionSender;
  8. use dokuwiki\Subscriptions\MediaSubscriptionSender;
  9. use dokuwiki\Subscriptions\PageSubscriptionSender;
  10. use dokuwiki\Subscriptions\RegistrationSubscriptionSender;
  11. use dokuwiki\Subscriptions\SubscriberManager;
  12. /**
  13. * @inheritdoc
  14. * @deprecated 2018-05-07
  15. */
  16. class RemoteAccessDeniedException extends \dokuwiki\Remote\AccessDeniedException
  17. {
  18. /** @inheritdoc */
  19. public function __construct($message = "", $code = 0, Throwable $previous = null)
  20. {
  21. dbg_deprecated(\dokuwiki\Remote\AccessDeniedException::class);
  22. parent::__construct($message, $code, $previous);
  23. }
  24. }
  25. /**
  26. * @inheritdoc
  27. * @deprecated 2018-05-07
  28. */
  29. class RemoteException extends \dokuwiki\Remote\RemoteException
  30. {
  31. /** @inheritdoc */
  32. public function __construct($message = "", $code = 0, Throwable $previous = null)
  33. {
  34. dbg_deprecated(\dokuwiki\Remote\RemoteException::class);
  35. parent::__construct($message, $code, $previous);
  36. }
  37. }
  38. /**
  39. * Escapes regex characters other than (, ) and /
  40. *
  41. * @param string $str
  42. * @return string
  43. * @deprecated 2018-05-04
  44. */
  45. function Doku_Lexer_Escape($str)
  46. {
  47. dbg_deprecated('\\dokuwiki\\Parsing\\Lexer\\Lexer::escape()');
  48. return \dokuwiki\Parsing\Lexer\Lexer::escape($str);
  49. }
  50. /**
  51. * @inheritdoc
  52. * @deprecated 2018-06-01
  53. */
  54. class setting extends \dokuwiki\plugin\config\core\Setting\Setting
  55. {
  56. /** @inheritdoc */
  57. public function __construct($key, array $params = null)
  58. {
  59. dbg_deprecated(\dokuwiki\plugin\config\core\Setting\Setting::class);
  60. parent::__construct($key, $params);
  61. }
  62. }
  63. /**
  64. * @inheritdoc
  65. * @deprecated 2018-06-01
  66. */
  67. class setting_authtype extends \dokuwiki\plugin\config\core\Setting\SettingAuthtype
  68. {
  69. /** @inheritdoc */
  70. public function __construct($key, array $params = null)
  71. {
  72. dbg_deprecated(\dokuwiki\plugin\config\core\Setting\SettingAuthtype::class);
  73. parent::__construct($key, $params);
  74. }
  75. }
  76. /**
  77. * @inheritdoc
  78. * @deprecated 2018-06-01
  79. */
  80. class setting_string extends \dokuwiki\plugin\config\core\Setting\SettingString
  81. {
  82. /** @inheritdoc */
  83. public function __construct($key, array $params = null)
  84. {
  85. dbg_deprecated(\dokuwiki\plugin\config\core\Setting\SettingString::class);
  86. parent::__construct($key, $params);
  87. }
  88. }
  89. /**
  90. * @inheritdoc
  91. * @deprecated 2018-06-15
  92. */
  93. class PageChangelog extends \dokuwiki\ChangeLog\PageChangeLog
  94. {
  95. /** @inheritdoc */
  96. public function __construct($id, $chunk_size = 8192)
  97. {
  98. dbg_deprecated(\dokuwiki\ChangeLog\PageChangeLog::class);
  99. parent::__construct($id, $chunk_size);
  100. }
  101. }
  102. /**
  103. * @inheritdoc
  104. * @deprecated 2018-06-15
  105. */
  106. class MediaChangelog extends \dokuwiki\ChangeLog\MediaChangeLog
  107. {
  108. /** @inheritdoc */
  109. public function __construct($id, $chunk_size = 8192)
  110. {
  111. dbg_deprecated(\dokuwiki\ChangeLog\MediaChangeLog::class);
  112. parent::__construct($id, $chunk_size);
  113. }
  114. }
  115. /** Behavior switch for JSON::decode() */
  116. define('JSON_LOOSE_TYPE', 16);
  117. /** Behavior switch for JSON::decode() */
  118. define('JSON_STRICT_TYPE', 0);
  119. /**
  120. * Encode/Decode JSON
  121. * @deprecated 2018-07-27
  122. */
  123. class JSON
  124. {
  125. protected $use = 0;
  126. /**
  127. * @param int $use JSON_*_TYPE flag
  128. * @deprecated 2018-07-27
  129. */
  130. public function __construct($use = JSON_STRICT_TYPE)
  131. {
  132. $this->use = $use;
  133. }
  134. /**
  135. * Encode given structure to JSON
  136. *
  137. * @param mixed $var
  138. * @return string
  139. * @deprecated 2018-07-27
  140. */
  141. public function encode($var)
  142. {
  143. dbg_deprecated('json_encode');
  144. return json_encode($var);
  145. }
  146. /**
  147. * Alias for encode()
  148. * @param $var
  149. * @return string
  150. * @deprecated 2018-07-27
  151. */
  152. public function enc($var) {
  153. return $this->encode($var);
  154. }
  155. /**
  156. * Decode given string from JSON
  157. *
  158. * @param string $str
  159. * @return mixed
  160. * @deprecated 2018-07-27
  161. */
  162. public function decode($str)
  163. {
  164. dbg_deprecated('json_encode');
  165. return json_decode($str, ($this->use == JSON_LOOSE_TYPE));
  166. }
  167. /**
  168. * Alias for decode
  169. *
  170. * @param $str
  171. * @return mixed
  172. * @deprecated 2018-07-27
  173. */
  174. public function dec($str) {
  175. return $this->decode($str);
  176. }
  177. }
  178. /**
  179. * @inheritdoc
  180. * @deprecated 2019-02-19
  181. */
  182. class Input extends \dokuwiki\Input\Input {
  183. /**
  184. * @inheritdoc
  185. * @deprecated 2019-02-19
  186. */
  187. public function __construct()
  188. {
  189. dbg_deprecated(\dokuwiki\Input\Input::class);
  190. parent::__construct();
  191. }
  192. }
  193. /**
  194. * @inheritdoc
  195. * @deprecated 2019-02-19
  196. */
  197. class PostInput extends \dokuwiki\Input\Post {
  198. /**
  199. * @inheritdoc
  200. * @deprecated 2019-02-19
  201. */
  202. public function __construct()
  203. {
  204. dbg_deprecated(\dokuwiki\Input\Post::class);
  205. parent::__construct();
  206. }
  207. }
  208. /**
  209. * @inheritdoc
  210. * @deprecated 2019-02-19
  211. */
  212. class GetInput extends \dokuwiki\Input\Get {
  213. /**
  214. * @inheritdoc
  215. * @deprecated 2019-02-19
  216. */
  217. public function __construct()
  218. {
  219. dbg_deprecated(\dokuwiki\Input\Get::class);
  220. parent::__construct();
  221. }
  222. }
  223. /**
  224. * @inheritdoc
  225. * @deprecated 2019-02-19
  226. */
  227. class ServerInput extends \dokuwiki\Input\Server {
  228. /**
  229. * @inheritdoc
  230. * @deprecated 2019-02-19
  231. */
  232. public function __construct()
  233. {
  234. dbg_deprecated(\dokuwiki\Input\Server::class);
  235. parent::__construct();
  236. }
  237. }
  238. /**
  239. * @inheritdoc
  240. * @deprecated 2019-03-06
  241. */
  242. class PassHash extends \dokuwiki\PassHash {
  243. /**
  244. * @inheritdoc
  245. * @deprecated 2019-03-06
  246. */
  247. public function __construct()
  248. {
  249. dbg_deprecated(\dokuwiki\PassHash::class);
  250. }
  251. }
  252. /**
  253. * @deprecated since 2019-03-17 use \dokuwiki\HTTP\HTTPClientException instead!
  254. */
  255. class HTTPClientException extends \dokuwiki\HTTP\HTTPClientException {
  256. /**
  257. * @inheritdoc
  258. * @deprecated 2019-03-17
  259. */
  260. public function __construct($message = '', $code = 0, $previous = null)
  261. {
  262. DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\HTTPClientException::class);
  263. parent::__construct($message, $code, $previous);
  264. }
  265. }
  266. /**
  267. * @deprecated since 2019-03-17 use \dokuwiki\HTTP\HTTPClient instead!
  268. */
  269. class HTTPClient extends \dokuwiki\HTTP\HTTPClient {
  270. /**
  271. * @inheritdoc
  272. * @deprecated 2019-03-17
  273. */
  274. public function __construct()
  275. {
  276. DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\HTTPClient::class);
  277. parent::__construct();
  278. }
  279. }
  280. /**
  281. * @deprecated since 2019-03-17 use \dokuwiki\HTTP\DokuHTTPClient instead!
  282. */
  283. class DokuHTTPClient extends \dokuwiki\HTTP\DokuHTTPClient
  284. {
  285. /**
  286. * @inheritdoc
  287. * @deprecated 2019-03-17
  288. */
  289. public function __construct()
  290. {
  291. DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\DokuHTTPClient::class);
  292. parent::__construct();
  293. }
  294. }
  295. /**
  296. * function wrapper to process (create, trigger and destroy) an event
  297. *
  298. * @param string $name name for the event
  299. * @param mixed $data event data
  300. * @param callback $action (optional, default=NULL) default action, a php callback function
  301. * @param bool $canPreventDefault (optional, default=true) can hooks prevent the default action
  302. *
  303. * @return mixed the event results value after all event processing is complete
  304. * by default this is the return value of the default action however
  305. * it can be set or modified by event handler hooks
  306. * @deprecated 2018-06-15
  307. */
  308. function trigger_event($name, &$data, $action=null, $canPreventDefault=true) {
  309. dbg_deprecated('\dokuwiki\Extension\Event::createAndTrigger');
  310. return \dokuwiki\Extension\Event::createAndTrigger($name, $data, $action, $canPreventDefault);
  311. }
  312. /**
  313. * @inheritdoc
  314. * @deprecated 2018-06-15
  315. */
  316. class Doku_Plugin_Controller extends \dokuwiki\Extension\PluginController {
  317. /** @inheritdoc */
  318. public function __construct()
  319. {
  320. dbg_deprecated(\dokuwiki\Extension\PluginController::class);
  321. parent::__construct();
  322. }
  323. }
  324. /**
  325. * Class for handling (email) subscriptions
  326. *
  327. * @author Adrian Lang <lang@cosmocode.de>
  328. * @author Andreas Gohr <andi@splitbrain.org>
  329. * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
  330. *
  331. * @deprecated 2019-04-22 Use the classes in the \dokuwiki\Subscriptions namespace instead!
  332. */
  333. class Subscription {
  334. /**
  335. * Check if subscription system is enabled
  336. *
  337. * @return bool
  338. *
  339. * @deprecated 2019-04-20 \dokuwiki\Subscriptions\SubscriberManager::isenabled
  340. */
  341. public function isenabled() {
  342. DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\SubscriberManager::isenabled');
  343. $subscriberManager = new SubscriberManager();
  344. return $subscriberManager->isenabled();
  345. }
  346. /**
  347. * Recursively search for matching subscriptions
  348. *
  349. * This function searches all relevant subscription files for a page or
  350. * namespace.
  351. *
  352. * @author Adrian Lang <lang@cosmocode.de>
  353. *
  354. * @param string $page The target object’s (namespace or page) id
  355. * @param string|array $user
  356. * @param string|array $style
  357. * @param string|array $data
  358. * @return array
  359. *
  360. * @deprecated 2019-04-20 \dokuwiki\Subscriptions\SubscriberManager::subscribers
  361. */
  362. public function subscribers($page, $user = null, $style = null, $data = null) {
  363. DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\SubscriberManager::subscribers');
  364. $manager = new SubscriberManager();
  365. return $manager->subscribers($page, $user, $style, $data);
  366. }
  367. /**
  368. * Adds a new subscription for the given page or namespace
  369. *
  370. * This will automatically overwrite any existent subscription for the given user on this
  371. * *exact* page or namespace. It will *not* modify any subscription that may exist in higher namespaces.
  372. *
  373. * @param string $id The target page or namespace, specified by id; Namespaces
  374. * are identified by appending a colon.
  375. * @param string $user
  376. * @param string $style
  377. * @param string $data
  378. * @throws Exception when user or style is empty
  379. * @return bool
  380. *
  381. * @deprecated 2019-04-20 \dokuwiki\Subscriptions\SubscriberManager::add
  382. */
  383. public function add($id, $user, $style, $data = '') {
  384. DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\SubscriberManager::add');
  385. $manager = new SubscriberManager();
  386. return $manager->add($id, $user, $style, $data);
  387. }
  388. /**
  389. * Removes a subscription for the given page or namespace
  390. *
  391. * This removes all subscriptions matching the given criteria on the given page or
  392. * namespace. It will *not* modify any subscriptions that may exist in higher
  393. * namespaces.
  394. *
  395. * @param string $id The target object’s (namespace or page) id
  396. * @param string|array $user
  397. * @param string|array $style
  398. * @param string|array $data
  399. * @return bool
  400. *
  401. * @deprecated 2019-04-20 \dokuwiki\Subscriptions\SubscriberManager::remove
  402. */
  403. public function remove($id, $user = null, $style = null, $data = null) {
  404. DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\SubscriberManager::remove');
  405. $manager = new SubscriberManager();
  406. return $manager->remove($id, $user, $style, $data);
  407. }
  408. /**
  409. * Get data for $INFO['subscribed']
  410. *
  411. * $INFO['subscribed'] is either false if no subscription for the current page
  412. * and user is in effect. Else it contains an array of arrays with the fields
  413. * “target”, “style”, and optionally “data”.
  414. *
  415. * @param string $id Page ID, defaults to global $ID
  416. * @param string $user User, defaults to $_SERVER['REMOTE_USER']
  417. * @return array|false
  418. * @author Adrian Lang <lang@cosmocode.de>
  419. *
  420. * @deprecated 2019-04-20 \dokuwiki\Subscriptions\SubscriberManager::userSubscription
  421. */
  422. public function user_subscription($id = '', $user = '') {
  423. DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\SubscriberManager::userSubscription');
  424. $manager = new SubscriberManager();
  425. return $manager->userSubscription($id, $user);
  426. }
  427. /**
  428. * Send digest and list subscriptions
  429. *
  430. * This sends mails to all subscribers that have a subscription for namespaces above
  431. * the given page if the needed $conf['subscribe_time'] has passed already.
  432. *
  433. * This function is called form lib/exe/indexer.php
  434. *
  435. * @param string $page
  436. * @return int number of sent mails
  437. *
  438. * @deprecated 2019-04-20 \dokuwiki\Subscriptions\BulkSubscriptionSender::sendBulk
  439. */
  440. public function send_bulk($page) {
  441. DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\BulkSubscriptionSender::sendBulk');
  442. $subscriptionSender = new BulkSubscriptionSender();
  443. return $subscriptionSender->sendBulk($page);
  444. }
  445. /**
  446. * Send the diff for some page change
  447. *
  448. * @param string $subscriber_mail The target mail address
  449. * @param string $template Mail template ('subscr_digest', 'subscr_single', 'mailtext', ...)
  450. * @param string $id Page for which the notification is
  451. * @param int|null $rev Old revision if any
  452. * @param string $summary Change summary if any
  453. * @return bool true if successfully sent
  454. *
  455. * @deprecated 2019-04-20 \dokuwiki\Subscriptions\PageSubscriptionSender::sendPageDiff
  456. */
  457. public function send_diff($subscriber_mail, $template, $id, $rev = null, $summary = '') {
  458. DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\PageSubscriptionSender::sendPageDiff');
  459. $subscriptionSender = new PageSubscriptionSender();
  460. return $subscriptionSender->sendPageDiff($subscriber_mail, $template, $id, $rev, $summary);
  461. }
  462. /**
  463. * Send the diff for some media change
  464. *
  465. * @fixme this should embed thumbnails of images in HTML version
  466. *
  467. * @param string $subscriber_mail The target mail address
  468. * @param string $template Mail template ('uploadmail', ...)
  469. * @param string $id Media file for which the notification is
  470. * @param int|bool $rev Old revision if any
  471. *
  472. * @deprecated 2019-04-20 \dokuwiki\Subscriptions\MediaSubscriptionSender::sendMediaDiff
  473. */
  474. public function send_media_diff($subscriber_mail, $template, $id, $rev = false) {
  475. DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\MediaSubscriptionSender::sendMediaDiff');
  476. $subscriptionSender = new MediaSubscriptionSender();
  477. return $subscriptionSender->sendMediaDiff($subscriber_mail, $template, $id, $rev);
  478. }
  479. /**
  480. * Send a notify mail on new registration
  481. *
  482. * @author Andreas Gohr <andi@splitbrain.org>
  483. *
  484. * @param string $login login name of the new user
  485. * @param string $fullname full name of the new user
  486. * @param string $email email address of the new user
  487. * @return bool true if a mail was sent
  488. *
  489. * @deprecated 2019-04-20 \dokuwiki\Subscriptions\RegistrationSubscriptionSender::sendRegister
  490. */
  491. public function send_register($login, $fullname, $email) {
  492. DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\RegistrationSubscriptionSender::sendRegister');
  493. $subscriptionSender = new RegistrationSubscriptionSender();
  494. return $subscriptionSender->sendRegister($login, $fullname, $email);
  495. }
  496. /**
  497. * Default callback for COMMON_NOTIFY_ADDRESSLIST
  498. *
  499. * Aggregates all email addresses of user who have subscribed the given page with 'every' style
  500. *
  501. * @author Steven Danz <steven-danz@kc.rr.com>
  502. * @author Adrian Lang <lang@cosmocode.de>
  503. *
  504. * @todo move the whole functionality into this class, trigger SUBSCRIPTION_NOTIFY_ADDRESSLIST instead,
  505. * use an array for the addresses within it
  506. *
  507. * @param array &$data Containing the entries:
  508. * - $id (the page id),
  509. * - $self (whether the author should be notified,
  510. * - $addresslist (current email address list)
  511. * - $replacements (array of additional string substitutions, @KEY@ to be replaced by value)
  512. *
  513. * @deprecated 2019-04-20 \dokuwiki\Subscriptions\SubscriberManager::notifyAddresses
  514. */
  515. public function notifyaddresses(&$data) {
  516. DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\SubscriberManager::notifyAddresses');
  517. $manager = new SubscriberManager();
  518. $manager->notifyAddresses($data);
  519. }
  520. }
  521. /**
  522. * @deprecated 2019-12-29 use \dokuwiki\Search\Indexer
  523. */
  524. class Doku_Indexer extends \dokuwiki\Search\Indexer {};
  525. /**
  526. * @deprecated since 2021-11-11 use \dokuwiki\Remote\IXR\Client instead!
  527. */
  528. class IXR_Client extends \dokuwiki\Remote\IXR\Client
  529. {
  530. /**
  531. * @inheritdoc
  532. * @deprecated 2021-11-11
  533. */
  534. public function __construct($server, $path = false, $port = 80, $timeout = 15, $timeout_io = null)
  535. {
  536. DebugHelper::dbgDeprecatedFunction(dokuwiki\Remote\IXR\Client::class);
  537. parent::__construct($server, $path, $port, $timeout, $timeout_io);
  538. }
  539. }
  540. /**
  541. * @deprecated since 2021-11-11 use \IXR\Client\ClientMulticall instead!
  542. */
  543. class IXR_ClientMulticall extends \IXR\Client\ClientMulticall
  544. {
  545. /**
  546. * @inheritdoc
  547. * @deprecated 2021-11-11
  548. */
  549. public function __construct($server, $path = false, $port = 80)
  550. {
  551. DebugHelper::dbgDeprecatedFunction(IXR\Client\ClientMulticall::class);
  552. parent::__construct($server, $path, $port);
  553. }
  554. }
  555. /**
  556. * @deprecated since 2021-11-11 use \IXR\Server\Server instead!
  557. */
  558. class IXR_Server extends \IXR\Server\Server
  559. {
  560. /**
  561. * @inheritdoc
  562. * @deprecated 2021-11-11
  563. */
  564. public function __construct($callbacks = false, $data = false, $wait = false)
  565. {
  566. DebugHelper::dbgDeprecatedFunction(IXR\Server\Server::class);
  567. parent::__construct($callbacks, $data, $wait);
  568. }
  569. }
  570. /**
  571. * @deprecated since 2021-11-11 use \IXR\Server\IntrospectionServer instead!
  572. */
  573. class IXR_IntrospectionServer extends \IXR\Server\IntrospectionServer
  574. {
  575. /**
  576. * @inheritdoc
  577. * @deprecated 2021-11-11
  578. */
  579. public function __construct()
  580. {
  581. DebugHelper::dbgDeprecatedFunction(IXR\Server\IntrospectionServer::class);
  582. parent::__construct();
  583. }
  584. }
  585. /**
  586. * @deprecated since 2021-11-11 use \IXR\Request\Request instead!
  587. */
  588. class IXR_Request extends \IXR\Request\Request
  589. {
  590. /**
  591. * @inheritdoc
  592. * @deprecated 2021-11-11
  593. */
  594. public function __construct($method, $args)
  595. {
  596. DebugHelper::dbgDeprecatedFunction(IXR\Request\Request::class);
  597. parent::__construct($method, $args);
  598. }
  599. }
  600. /**
  601. * @deprecated since 2021-11-11 use \IXR\Message\Message instead!
  602. */
  603. class IXR_Message extends IXR\Message\Message
  604. {
  605. /**
  606. * @inheritdoc
  607. * @deprecated 2021-11-11
  608. */
  609. public function __construct($message)
  610. {
  611. DebugHelper::dbgDeprecatedFunction(IXR\Message\Message::class);
  612. parent::__construct($message);
  613. }
  614. }
  615. /**
  616. * @deprecated since 2021-11-11 use \IXR\Message\Error instead!
  617. */
  618. class IXR_Error extends \IXR\Message\Error
  619. {
  620. /**
  621. * @inheritdoc
  622. * @deprecated 2021-11-11
  623. */
  624. public function __construct($code, $message)
  625. {
  626. DebugHelper::dbgDeprecatedFunction(IXR\Message\Error::class);
  627. parent::__construct($code, $message);
  628. }
  629. }
  630. /**
  631. * @deprecated since 2021-11-11 use \IXR\DataType\Date instead!
  632. */
  633. class IXR_Date extends \IXR\DataType\Date
  634. {
  635. /**
  636. * @inheritdoc
  637. * @deprecated 2021-11-11
  638. */
  639. public function __construct($time)
  640. {
  641. DebugHelper::dbgDeprecatedFunction(IXR\DataType\Date::class);
  642. parent::__construct($time);
  643. }
  644. }
  645. /**
  646. * @deprecated since 2021-11-11 use \IXR\DataType\Base64 instead!
  647. */
  648. class IXR_Base64 extends \IXR\DataType\Base64
  649. {
  650. /**
  651. * @inheritdoc
  652. * @deprecated 2021-11-11
  653. */
  654. public function __construct($data)
  655. {
  656. DebugHelper::dbgDeprecatedFunction(IXR\DataType\Base64::class);
  657. parent::__construct($data);
  658. }
  659. }
  660. /**
  661. * @deprecated since 2021-11-11 use \IXR\DataType\Value instead!
  662. */
  663. class IXR_Value extends \IXR\DataType\Value
  664. {
  665. /**
  666. * @inheritdoc
  667. * @deprecated 2021-11-11
  668. */
  669. public function __construct($data, $type = null)
  670. {
  671. DebugHelper::dbgDeprecatedFunction(IXR\DataType\Value::class);
  672. parent::__construct($data, $type);
  673. }
  674. }