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(); } } /** * Class for handling (email) subscriptions * * @author Adrian Lang * @author Andreas Gohr * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * * @deprecated 2019-04-22 Use the classes in the \dokuwiki\Subscriptions namespace instead! */ class Subscription { /** * Check if subscription system is enabled * * @return bool * * @deprecated 2019-04-20 \dokuwiki\Subscriptions\SubscriberManager::isenabled */ public function isenabled() { DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\SubscriberManager::isenabled'); $subscriberManager = new SubscriberManager(); return $subscriberManager->isenabled(); } /** * Recursively search for matching subscriptions * * This function searches all relevant subscription files for a page or * namespace. * * @author Adrian Lang * * @param string $page The target object’s (namespace or page) id * @param string|array $user * @param string|array $style * @param string|array $data * @return array * * @deprecated 2019-04-20 \dokuwiki\Subscriptions\SubscriberManager::subscribers */ public function subscribers($page, $user = null, $style = null, $data = null) { DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\SubscriberManager::subscribers'); $manager = new SubscriberManager(); return $manager->subscribers($page, $user, $style, $data); } /** * Adds a new subscription for the given page or namespace * * This will automatically overwrite any existent subscription for the given user on this * *exact* page or namespace. It will *not* modify any subscription that may exist in higher namespaces. * * @param string $id The target page or namespace, specified by id; Namespaces * are identified by appending a colon. * @param string $user * @param string $style * @param string $data * @throws Exception when user or style is empty * @return bool * * @deprecated 2019-04-20 \dokuwiki\Subscriptions\SubscriberManager::add */ public function add($id, $user, $style, $data = '') { DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\SubscriberManager::add'); $manager = new SubscriberManager(); return $manager->add($id, $user, $style, $data); } /** * Removes a subscription for the given page or namespace * * This removes all subscriptions matching the given criteria on the given page or * namespace. It will *not* modify any subscriptions that may exist in higher * namespaces. * * @param string $id The target object’s (namespace or page) id * @param string|array $user * @param string|array $style * @param string|array $data * @return bool * * @deprecated 2019-04-20 \dokuwiki\Subscriptions\SubscriberManager::remove */ public function remove($id, $user = null, $style = null, $data = null) { DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\SubscriberManager::remove'); $manager = new SubscriberManager(); return $manager->remove($id, $user, $style, $data); } /** * Get data for $INFO['subscribed'] * * $INFO['subscribed'] is either false if no subscription for the current page * and user is in effect. Else it contains an array of arrays with the fields * “target”, “style”, and optionally “data”. * * @param string $id Page ID, defaults to global $ID * @param string $user User, defaults to $_SERVER['REMOTE_USER'] * @return array|false * @author Adrian Lang * * @deprecated 2019-04-20 \dokuwiki\Subscriptions\SubscriberManager::userSubscription */ public function user_subscription($id = '', $user = '') { DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\SubscriberManager::userSubscription'); $manager = new SubscriberManager(); return $manager->userSubscription($id, $user); } /** * Send digest and list subscriptions * * This sends mails to all subscribers that have a subscription for namespaces above * the given page if the needed $conf['subscribe_time'] has passed already. * * This function is called form lib/exe/indexer.php * * @param string $page * @return int number of sent mails * * @deprecated 2019-04-20 \dokuwiki\Subscriptions\BulkSubscriptionSender::sendBulk */ public function send_bulk($page) { DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\BulkSubscriptionSender::sendBulk'); $subscriptionSender = new BulkSubscriptionSender(); return $subscriptionSender->sendBulk($page); } /** * Send the diff for some page change * * @param string $subscriber_mail The target mail address * @param string $template Mail template ('subscr_digest', 'subscr_single', 'mailtext', ...) * @param string $id Page for which the notification is * @param int|null $rev Old revision if any * @param string $summary Change summary if any * @return bool true if successfully sent * * @deprecated 2019-04-20 \dokuwiki\Subscriptions\PageSubscriptionSender::sendPageDiff */ public function send_diff($subscriber_mail, $template, $id, $rev = null, $summary = '') { DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\PageSubscriptionSender::sendPageDiff'); $subscriptionSender = new PageSubscriptionSender(); return $subscriptionSender->sendPageDiff($subscriber_mail, $template, $id, $rev, $summary); } /** * Send the diff for some media change * * @fixme this should embed thumbnails of images in HTML version * * @param string $subscriber_mail The target mail address * @param string $template Mail template ('uploadmail', ...) * @param string $id Media file for which the notification is * @param int|bool $rev Old revision if any * * @deprecated 2019-04-20 \dokuwiki\Subscriptions\MediaSubscriptionSender::sendMediaDiff */ public function send_media_diff($subscriber_mail, $template, $id, $rev = false) { DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\MediaSubscriptionSender::sendMediaDiff'); $subscriptionSender = new MediaSubscriptionSender(); return $subscriptionSender->sendMediaDiff($subscriber_mail, $template, $id, $rev); } /** * Send a notify mail on new registration * * @author Andreas Gohr * * @param string $login login name of the new user * @param string $fullname full name of the new user * @param string $email email address of the new user * @return bool true if a mail was sent * * @deprecated 2019-04-20 \dokuwiki\Subscriptions\RegistrationSubscriptionSender::sendRegister */ public function send_register($login, $fullname, $email) { DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\RegistrationSubscriptionSender::sendRegister'); $subscriptionSender = new RegistrationSubscriptionSender(); return $subscriptionSender->sendRegister($login, $fullname, $email); } /** * Default callback for COMMON_NOTIFY_ADDRESSLIST * * Aggregates all email addresses of user who have subscribed the given page with 'every' style * * @author Steven Danz * @author Adrian Lang * * @todo move the whole functionality into this class, trigger SUBSCRIPTION_NOTIFY_ADDRESSLIST instead, * use an array for the addresses within it * * @param array &$data Containing the entries: * - $id (the page id), * - $self (whether the author should be notified, * - $addresslist (current email address list) * - $replacements (array of additional string substitutions, @KEY@ to be replaced by value) * * @deprecated 2019-04-20 \dokuwiki\Subscriptions\SubscriberManager::notifyAddresses */ public function notifyaddresses(&$data) { DebugHelper::dbgDeprecatedFunction('\dokuwiki\Subscriptions\SubscriberManager::notifyAddresses'); $manager = new SubscriberManager(); $manager->notifyAddresses($data); } } /** * @deprecated 2019-12-29 use \dokuwiki\Search\Indexer */ class Doku_Indexer extends \dokuwiki\Search\Indexer {}; /** * @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); } }