14cdb6842SAndreas Gohr<?php 2b78f68bcSAndreas Gohr// phpcs:ignoreFile -- this file violates PSR2 by definition 34cdb6842SAndreas Gohr/** 44cdb6842SAndreas Gohr * These classes and functions are deprecated and will be removed in future releases 54cdb6842SAndreas Gohr */ 64cdb6842SAndreas Gohr 7cbb44eabSAndreas Gohruse dokuwiki\Debug\DebugHelper; 8cbb44eabSAndreas Gohr 94cdb6842SAndreas Gohr/** 104cdb6842SAndreas Gohr * @inheritdoc 114cdb6842SAndreas Gohr * @deprecated 2018-05-07 124cdb6842SAndreas Gohr */ 13d443762bSAndreas Gohrclass RemoteAccessDeniedException extends \dokuwiki\Remote\AccessDeniedException 14d443762bSAndreas Gohr{ 154cdb6842SAndreas Gohr /** @inheritdoc */ 16d443762bSAndreas Gohr public function __construct($message = "", $code = 0, Throwable $previous = null) 17d443762bSAndreas Gohr { 18a6e1db4aSAndreas Gohr dbg_deprecated(\dokuwiki\Remote\AccessDeniedException::class); 194cdb6842SAndreas Gohr parent::__construct($message, $code, $previous); 204cdb6842SAndreas Gohr } 214cdb6842SAndreas Gohr 224cdb6842SAndreas Gohr} 234cdb6842SAndreas Gohr 244cdb6842SAndreas Gohr/** 254cdb6842SAndreas Gohr * @inheritdoc 264cdb6842SAndreas Gohr * @deprecated 2018-05-07 274cdb6842SAndreas Gohr */ 28d443762bSAndreas Gohrclass RemoteException extends \dokuwiki\Remote\RemoteException 29d443762bSAndreas Gohr{ 304cdb6842SAndreas Gohr /** @inheritdoc */ 31d443762bSAndreas Gohr public function __construct($message = "", $code = 0, Throwable $previous = null) 32d443762bSAndreas Gohr { 33a6e1db4aSAndreas Gohr dbg_deprecated(\dokuwiki\Remote\RemoteException::class); 344cdb6842SAndreas Gohr parent::__construct($message, $code, $previous); 354cdb6842SAndreas Gohr } 364cdb6842SAndreas Gohr 374cdb6842SAndreas Gohr} 384cdb6842SAndreas Gohr 394cdb6842SAndreas Gohr/** 404cdb6842SAndreas Gohr * Escapes regex characters other than (, ) and / 414cdb6842SAndreas Gohr * 424cdb6842SAndreas Gohr * @param string $str 434cdb6842SAndreas Gohr * @return string 444cdb6842SAndreas Gohr * @deprecated 2018-05-04 454cdb6842SAndreas Gohr */ 46d443762bSAndreas Gohrfunction Doku_Lexer_Escape($str) 47d443762bSAndreas Gohr{ 48a6e1db4aSAndreas Gohr dbg_deprecated('\\dokuwiki\\Parsing\\Lexer\\Lexer::escape()'); 494cdb6842SAndreas Gohr return \dokuwiki\Parsing\Lexer\Lexer::escape($str); 504cdb6842SAndreas Gohr} 51a6e1db4aSAndreas Gohr 52a6e1db4aSAndreas Gohr/** 53a6e1db4aSAndreas Gohr * @inheritdoc 54a6e1db4aSAndreas Gohr * @deprecated 2018-06-01 55a6e1db4aSAndreas Gohr */ 56d443762bSAndreas Gohrclass setting extends \dokuwiki\plugin\config\core\Setting\Setting 57d443762bSAndreas Gohr{ 58a6e1db4aSAndreas Gohr /** @inheritdoc */ 59d443762bSAndreas Gohr public function __construct($key, array $params = null) 60d443762bSAndreas Gohr { 61a6e1db4aSAndreas Gohr dbg_deprecated(\dokuwiki\plugin\config\core\Setting\Setting::class); 62a6e1db4aSAndreas Gohr parent::__construct($key, $params); 63a6e1db4aSAndreas Gohr } 64a6e1db4aSAndreas Gohr} 65a6e1db4aSAndreas Gohr 66a6e1db4aSAndreas Gohr/** 67a6e1db4aSAndreas Gohr * @inheritdoc 68a6e1db4aSAndreas Gohr * @deprecated 2018-06-01 69a6e1db4aSAndreas Gohr */ 70d443762bSAndreas Gohrclass setting_authtype extends \dokuwiki\plugin\config\core\Setting\SettingAuthtype 71d443762bSAndreas Gohr{ 72a6e1db4aSAndreas Gohr /** @inheritdoc */ 73d443762bSAndreas Gohr public function __construct($key, array $params = null) 74d443762bSAndreas Gohr { 75a6e1db4aSAndreas Gohr dbg_deprecated(\dokuwiki\plugin\config\core\Setting\SettingAuthtype::class); 76a6e1db4aSAndreas Gohr parent::__construct($key, $params); 77a6e1db4aSAndreas Gohr } 78a6e1db4aSAndreas Gohr} 79a6e1db4aSAndreas Gohr 80a6e1db4aSAndreas Gohr/** 81a6e1db4aSAndreas Gohr * @inheritdoc 82a6e1db4aSAndreas Gohr * @deprecated 2018-06-01 83a6e1db4aSAndreas Gohr */ 84d443762bSAndreas Gohrclass setting_string extends \dokuwiki\plugin\config\core\Setting\SettingString 85d443762bSAndreas Gohr{ 86a6e1db4aSAndreas Gohr /** @inheritdoc */ 87d443762bSAndreas Gohr public function __construct($key, array $params = null) 88d443762bSAndreas Gohr { 89a6e1db4aSAndreas Gohr dbg_deprecated(\dokuwiki\plugin\config\core\Setting\SettingString::class); 90a6e1db4aSAndreas Gohr parent::__construct($key, $params); 91a6e1db4aSAndreas Gohr } 92a6e1db4aSAndreas Gohr} 930c3a5702SAndreas Gohr 940c3a5702SAndreas Gohr/** 950c3a5702SAndreas Gohr * @inheritdoc 960c3a5702SAndreas Gohr * @deprecated 2018-06-15 970c3a5702SAndreas Gohr */ 98d443762bSAndreas Gohrclass PageChangelog extends \dokuwiki\ChangeLog\PageChangeLog 99d443762bSAndreas Gohr{ 1000c3a5702SAndreas Gohr /** @inheritdoc */ 1010c3a5702SAndreas Gohr public function __construct($id, $chunk_size = 8192) 1020c3a5702SAndreas Gohr { 1030c3a5702SAndreas Gohr dbg_deprecated(\dokuwiki\ChangeLog\PageChangeLog::class); 1040c3a5702SAndreas Gohr parent::__construct($id, $chunk_size); 1050c3a5702SAndreas Gohr } 1060c3a5702SAndreas Gohr} 1070c3a5702SAndreas Gohr 1080c3a5702SAndreas Gohr/** 1090c3a5702SAndreas Gohr * @inheritdoc 1100c3a5702SAndreas Gohr * @deprecated 2018-06-15 1110c3a5702SAndreas Gohr */ 112d443762bSAndreas Gohrclass MediaChangelog extends \dokuwiki\ChangeLog\MediaChangeLog 113d443762bSAndreas Gohr{ 1140c3a5702SAndreas Gohr /** @inheritdoc */ 1150c3a5702SAndreas Gohr public function __construct($id, $chunk_size = 8192) 1160c3a5702SAndreas Gohr { 1170c3a5702SAndreas Gohr dbg_deprecated(\dokuwiki\ChangeLog\MediaChangeLog::class); 1180c3a5702SAndreas Gohr parent::__construct($id, $chunk_size); 1190c3a5702SAndreas Gohr } 1200c3a5702SAndreas Gohr} 121d443762bSAndreas Gohr 122d443762bSAndreas Gohr/** Behavior switch for JSON::decode() */ 123d443762bSAndreas Gohrdefine('JSON_LOOSE_TYPE', 16); 124d443762bSAndreas Gohr 125d443762bSAndreas Gohr/** Behavior switch for JSON::decode() */ 126d443762bSAndreas Gohrdefine('JSON_STRICT_TYPE', 0); 127d443762bSAndreas Gohr 128d443762bSAndreas Gohr/** 129d443762bSAndreas Gohr * Encode/Decode JSON 130d443762bSAndreas Gohr * @deprecated 2018-07-27 131d443762bSAndreas Gohr */ 132d443762bSAndreas Gohrclass JSON 133d443762bSAndreas Gohr{ 134d443762bSAndreas Gohr protected $use = 0; 135d443762bSAndreas Gohr 136d443762bSAndreas Gohr /** 137d443762bSAndreas Gohr * @param int $use JSON_*_TYPE flag 138d443762bSAndreas Gohr * @deprecated 2018-07-27 139d443762bSAndreas Gohr */ 140d443762bSAndreas Gohr public function __construct($use = JSON_STRICT_TYPE) 141d443762bSAndreas Gohr { 142d443762bSAndreas Gohr $this->use = $use; 143d443762bSAndreas Gohr } 144d443762bSAndreas Gohr 145d443762bSAndreas Gohr /** 146d443762bSAndreas Gohr * Encode given structure to JSON 147d443762bSAndreas Gohr * 148d443762bSAndreas Gohr * @param mixed $var 149d443762bSAndreas Gohr * @return string 150d443762bSAndreas Gohr * @deprecated 2018-07-27 151d443762bSAndreas Gohr */ 152d443762bSAndreas Gohr public function encode($var) 153d443762bSAndreas Gohr { 154d443762bSAndreas Gohr dbg_deprecated('json_encode'); 155d443762bSAndreas Gohr return json_encode($var); 156d443762bSAndreas Gohr } 157d443762bSAndreas Gohr 158d443762bSAndreas Gohr /** 159d443762bSAndreas Gohr * Alias for encode() 160d443762bSAndreas Gohr * @param $var 161d443762bSAndreas Gohr * @return string 162d443762bSAndreas Gohr * @deprecated 2018-07-27 163d443762bSAndreas Gohr */ 164d443762bSAndreas Gohr public function enc($var) { 165d443762bSAndreas Gohr return $this->encode($var); 166d443762bSAndreas Gohr } 167d443762bSAndreas Gohr 168d443762bSAndreas Gohr /** 169d443762bSAndreas Gohr * Decode given string from JSON 170d443762bSAndreas Gohr * 171d443762bSAndreas Gohr * @param string $str 172d443762bSAndreas Gohr * @return mixed 173d443762bSAndreas Gohr * @deprecated 2018-07-27 174d443762bSAndreas Gohr */ 175d443762bSAndreas Gohr public function decode($str) 176d443762bSAndreas Gohr { 177d443762bSAndreas Gohr dbg_deprecated('json_encode'); 178d443762bSAndreas Gohr return json_decode($str, ($this->use == JSON_LOOSE_TYPE)); 179d443762bSAndreas Gohr } 180d443762bSAndreas Gohr 181d443762bSAndreas Gohr /** 182d443762bSAndreas Gohr * Alias for decode 183d443762bSAndreas Gohr * 184d443762bSAndreas Gohr * @param $str 185d443762bSAndreas Gohr * @return mixed 186d443762bSAndreas Gohr * @deprecated 2018-07-27 187d443762bSAndreas Gohr */ 188d443762bSAndreas Gohr public function dec($str) { 189d443762bSAndreas Gohr return $this->decode($str); 190d443762bSAndreas Gohr } 191d443762bSAndreas Gohr} 192ccc4c71cSAndreas Gohr 193ccc4c71cSAndreas Gohr/** 194ccc4c71cSAndreas Gohr * @inheritdoc 195ccc4c71cSAndreas Gohr * @deprecated 2019-02-19 196ccc4c71cSAndreas Gohr */ 197ccc4c71cSAndreas Gohrclass Input extends \dokuwiki\Input\Input { 198ccc4c71cSAndreas Gohr /** 199ccc4c71cSAndreas Gohr * @inheritdoc 200ccc4c71cSAndreas Gohr * @deprecated 2019-02-19 201ccc4c71cSAndreas Gohr */ 202ccc4c71cSAndreas Gohr public function __construct() 203ccc4c71cSAndreas Gohr { 204ccc4c71cSAndreas Gohr dbg_deprecated(\dokuwiki\Input\Input::class); 205ccc4c71cSAndreas Gohr parent::__construct(); 206ccc4c71cSAndreas Gohr } 207ccc4c71cSAndreas Gohr} 208ccc4c71cSAndreas Gohr 209ccc4c71cSAndreas Gohr/** 210ccc4c71cSAndreas Gohr * @inheritdoc 211ccc4c71cSAndreas Gohr * @deprecated 2019-02-19 212ccc4c71cSAndreas Gohr */ 213ccc4c71cSAndreas Gohrclass PostInput extends \dokuwiki\Input\Post { 214ccc4c71cSAndreas Gohr /** 215ccc4c71cSAndreas Gohr * @inheritdoc 216ccc4c71cSAndreas Gohr * @deprecated 2019-02-19 217ccc4c71cSAndreas Gohr */ 218ccc4c71cSAndreas Gohr public function __construct() 219ccc4c71cSAndreas Gohr { 220ccc4c71cSAndreas Gohr dbg_deprecated(\dokuwiki\Input\Post::class); 221ccc4c71cSAndreas Gohr parent::__construct(); 222ccc4c71cSAndreas Gohr } 223ccc4c71cSAndreas Gohr} 224ccc4c71cSAndreas Gohr 225ccc4c71cSAndreas Gohr/** 226ccc4c71cSAndreas Gohr * @inheritdoc 227ccc4c71cSAndreas Gohr * @deprecated 2019-02-19 228ccc4c71cSAndreas Gohr */ 229ccc4c71cSAndreas Gohrclass GetInput extends \dokuwiki\Input\Get { 230ccc4c71cSAndreas Gohr /** 231ccc4c71cSAndreas Gohr * @inheritdoc 232ccc4c71cSAndreas Gohr * @deprecated 2019-02-19 233ccc4c71cSAndreas Gohr */ 234ccc4c71cSAndreas Gohr public function __construct() 235ccc4c71cSAndreas Gohr { 236ccc4c71cSAndreas Gohr dbg_deprecated(\dokuwiki\Input\Get::class); 237ccc4c71cSAndreas Gohr parent::__construct(); 238ccc4c71cSAndreas Gohr } 239ccc4c71cSAndreas Gohr} 240ccc4c71cSAndreas Gohr 241ccc4c71cSAndreas Gohr/** 242ccc4c71cSAndreas Gohr * @inheritdoc 243ccc4c71cSAndreas Gohr * @deprecated 2019-02-19 244ccc4c71cSAndreas Gohr */ 245ccc4c71cSAndreas Gohrclass ServerInput extends \dokuwiki\Input\Server { 246ccc4c71cSAndreas Gohr /** 247ccc4c71cSAndreas Gohr * @inheritdoc 248ccc4c71cSAndreas Gohr * @deprecated 2019-02-19 249ccc4c71cSAndreas Gohr */ 250ccc4c71cSAndreas Gohr public function __construct() 251ccc4c71cSAndreas Gohr { 252ccc4c71cSAndreas Gohr dbg_deprecated(\dokuwiki\Input\Server::class); 253ccc4c71cSAndreas Gohr parent::__construct(); 254ccc4c71cSAndreas Gohr } 255ccc4c71cSAndreas Gohr} 256c3cc6e05SAndreas Gohr 257c3cc6e05SAndreas Gohr/** 258c3cc6e05SAndreas Gohr * @inheritdoc 259c3cc6e05SAndreas Gohr * @deprecated 2019-03-06 260c3cc6e05SAndreas Gohr */ 261c3cc6e05SAndreas Gohrclass PassHash extends \dokuwiki\PassHash { 262c3cc6e05SAndreas Gohr /** 263c3cc6e05SAndreas Gohr * @inheritdoc 264c3cc6e05SAndreas Gohr * @deprecated 2019-03-06 265c3cc6e05SAndreas Gohr */ 266c3cc6e05SAndreas Gohr public function __construct() 267c3cc6e05SAndreas Gohr { 268c3cc6e05SAndreas Gohr dbg_deprecated(\dokuwiki\PassHash::class); 269c3cc6e05SAndreas Gohr } 270c3cc6e05SAndreas Gohr} 27160b9af73SMichael Große 27260b9af73SMichael Große/** 2735a8d6e48SMichael Große * @deprecated since 2019-03-17 use \dokuwiki\HTTP\HTTPClientException instead! 27460b9af73SMichael Große */ 2755a8d6e48SMichael Großeclass HTTPClientException extends \dokuwiki\HTTP\HTTPClientException { 27660b9af73SMichael Große 27760b9af73SMichael Große /** 27860b9af73SMichael Große * @inheritdoc 27960b9af73SMichael Große * @deprecated 2019-03-17 28060b9af73SMichael Große */ 28160b9af73SMichael Große public function __construct($message = '', $code = 0, $previous = null) 28260b9af73SMichael Große { 2835a8d6e48SMichael Große DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\HTTPClientException::class); 28460b9af73SMichael Große parent::__construct($message, $code, $previous); 28560b9af73SMichael Große } 28660b9af73SMichael Große} 28760b9af73SMichael Große 28860b9af73SMichael Große/** 2895a8d6e48SMichael Große * @deprecated since 2019-03-17 use \dokuwiki\HTTP\HTTPClient instead! 29060b9af73SMichael Große */ 2915a8d6e48SMichael Großeclass HTTPClient extends \dokuwiki\HTTP\HTTPClient { 29260b9af73SMichael Große 29360b9af73SMichael Große /** 29460b9af73SMichael Große * @inheritdoc 29560b9af73SMichael Große * @deprecated 2019-03-17 29660b9af73SMichael Große */ 29760b9af73SMichael Große public function __construct() 29860b9af73SMichael Große { 2995a8d6e48SMichael Große DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\HTTPClient::class); 30060b9af73SMichael Große parent::__construct(); 30160b9af73SMichael Große } 30260b9af73SMichael Große} 30360b9af73SMichael Große 30460b9af73SMichael Große/** 3055a8d6e48SMichael Große * @deprecated since 2019-03-17 use \dokuwiki\HTTP\DokuHTTPClient instead! 30660b9af73SMichael Große */ 307cbb44eabSAndreas Gohrclass DokuHTTPClient extends \dokuwiki\HTTP\DokuHTTPClient 308cbb44eabSAndreas Gohr{ 30960b9af73SMichael Große 31060b9af73SMichael Große /** 31160b9af73SMichael Große * @inheritdoc 31260b9af73SMichael Große * @deprecated 2019-03-17 31360b9af73SMichael Große */ 31460b9af73SMichael Große public function __construct() 31560b9af73SMichael Große { 3165a8d6e48SMichael Große DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\DokuHTTPClient::class); 31760b9af73SMichael Große parent::__construct(); 31860b9af73SMichael Große } 319cbb44eabSAndreas Gohr} 32060b9af73SMichael Große 321cbb44eabSAndreas Gohr/** 322cbb44eabSAndreas Gohr * function wrapper to process (create, trigger and destroy) an event 323cbb44eabSAndreas Gohr * 324cbb44eabSAndreas Gohr * @param string $name name for the event 325cbb44eabSAndreas Gohr * @param mixed $data event data 326cbb44eabSAndreas Gohr * @param callback $action (optional, default=NULL) default action, a php callback function 327cbb44eabSAndreas Gohr * @param bool $canPreventDefault (optional, default=true) can hooks prevent the default action 328cbb44eabSAndreas Gohr * 329cbb44eabSAndreas Gohr * @return mixed the event results value after all event processing is complete 330cbb44eabSAndreas Gohr * by default this is the return value of the default action however 331cbb44eabSAndreas Gohr * it can be set or modified by event handler hooks 332cbb44eabSAndreas Gohr * @deprecated 2018-06-15 333cbb44eabSAndreas Gohr */ 334cbb44eabSAndreas Gohrfunction trigger_event($name, &$data, $action=null, $canPreventDefault=true) { 335cbb44eabSAndreas Gohr dbg_deprecated('\dokuwiki\Extension\Event::createAndTrigger'); 336cbb44eabSAndreas Gohr return \dokuwiki\Extension\Event::createAndTrigger($name, $data, $action, $canPreventDefault); 33760b9af73SMichael Große} 338*3a7140a1SAndreas Gohr 339*3a7140a1SAndreas Gohr/** 340*3a7140a1SAndreas Gohr * @inheritdoc 341*3a7140a1SAndreas Gohr * @deprecated 2018-06-15 342*3a7140a1SAndreas Gohr */ 343*3a7140a1SAndreas Gohrclass Doku_Plugin_Controller extends \dokuwiki\Extension\PluginController { 344*3a7140a1SAndreas Gohr /** @inheritdoc */ 345*3a7140a1SAndreas Gohr public function __construct() 346*3a7140a1SAndreas Gohr { 347*3a7140a1SAndreas Gohr dbg_deprecated(\dokuwiki\Extension\PluginController::class); 348*3a7140a1SAndreas Gohr parent::__construct(); 349*3a7140a1SAndreas Gohr } 350*3a7140a1SAndreas Gohr} 351