use = $use; } /** * Encode given structure to JSON * * @param mixed $var * @return string * @deprecated 2018-07-27 */ public function encode($var) { dbg_deprecated('json_encode'); return json_encode($var); } /** * Alias for encode() * @param $var * @return string * @deprecated 2018-07-27 */ public function enc($var) { return $this->encode($var); } /** * Decode given string from JSON * * @param string $str * @return mixed * @deprecated 2018-07-27 */ public function decode($str) { dbg_deprecated('json_encode'); return json_decode($str, ($this->use == JSON_LOOSE_TYPE)); } /** * Alias for decode * * @param $str * @return mixed * @deprecated 2018-07-27 */ public function dec($str) { return $this->decode($str); } } /** * @inheritdoc * @deprecated 2019-02-19 */ class Input extends \dokuwiki\Input\Input { /** * @inheritdoc * @deprecated 2019-02-19 */ public function __construct() { dbg_deprecated(\dokuwiki\Input\Input::class); parent::__construct(); } } /** * @inheritdoc * @deprecated 2019-02-19 */ class PostInput extends \dokuwiki\Input\Post { /** * @inheritdoc * @deprecated 2019-02-19 */ public function __construct() { dbg_deprecated(\dokuwiki\Input\Post::class); parent::__construct(); } } /** * @inheritdoc * @deprecated 2019-02-19 */ class GetInput extends \dokuwiki\Input\Get { /** * @inheritdoc * @deprecated 2019-02-19 */ public function __construct() { dbg_deprecated(\dokuwiki\Input\Get::class); parent::__construct(); } } /** * @inheritdoc * @deprecated 2019-02-19 */ class ServerInput extends \dokuwiki\Input\Server { /** * @inheritdoc * @deprecated 2019-02-19 */ public function __construct() { dbg_deprecated(\dokuwiki\Input\Server::class); parent::__construct(); } } /** * @inheritdoc * @deprecated 2019-03-06 */ class PassHash extends \dokuwiki\PassHash { /** * @inheritdoc * @deprecated 2019-03-06 */ public function __construct() { dbg_deprecated(\dokuwiki\PassHash::class); } } /** * @deprecated since 2019-03-17 use \dokuwiki\HTTP\HTTPClientException instead! */ class HTTPClientException extends \dokuwiki\HTTP\HTTPClientException { /** * @inheritdoc * @deprecated 2019-03-17 */ public function __construct($message = '', $code = 0, $previous = null) { DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\HTTPClientException::class); parent::__construct($message, $code, $previous); } } /** * @deprecated since 2019-03-17 use \dokuwiki\HTTP\HTTPClient instead! */ class HTTPClient extends \dokuwiki\HTTP\HTTPClient { /** * @inheritdoc * @deprecated 2019-03-17 */ public function __construct() { DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\HTTPClient::class); parent::__construct(); } } /** * @deprecated since 2019-03-17 use \dokuwiki\HTTP\DokuHTTPClient instead! */ class DokuHTTPClient extends \dokuwiki\HTTP\DokuHTTPClient { /** * @inheritdoc * @deprecated 2019-03-17 */ public function __construct() { DebugHelper::dbgDeprecatedFunction(dokuwiki\HTTP\DokuHTTPClient::class); parent::__construct(); } } /** * function wrapper to process (create, trigger and destroy) an event * * @param string $name name for the event * @param mixed $data event data * @param callback $action (optional, default=NULL) default action, a php callback function * @param bool $canPreventDefault (optional, default=true) can hooks prevent the default action * * @return mixed the event results value after all event processing is complete * by default this is the return value of the default action however * it can be set or modified by event handler hooks * @deprecated 2018-06-15 */ function trigger_event($name, &$data, $action=null, $canPreventDefault=true) { dbg_deprecated('\dokuwiki\Extension\Event::createAndTrigger'); return \dokuwiki\Extension\Event::createAndTrigger($name, $data, $action, $canPreventDefault); } /** * @inheritdoc * @deprecated 2018-06-15 */ class Doku_Plugin_Controller extends \dokuwiki\Extension\PluginController { /** @inheritdoc */ public function __construct() { dbg_deprecated(\dokuwiki\Extension\PluginController::class); parent::__construct(); } }