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(); } }