[ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 295 lines (9 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
SubscriberManager:: (7 methods):
isenabled()
add()
remove()
userSubscription()
subscribers()
notifyAddresses()
file()
Class: SubscriberManager - X-Ref
isenabled() X-Ref |
Check if subscription system is enabled return: bool |
add($id, $user, $style, $data = '') X-Ref |
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 param: string $user param: string $style param: string $data return: bool |
remove($id, $user = null, $style = null, $data = null) X-Ref |
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 |
userSubscription($id = '', $user = '') X-Ref |
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 <lang@cosmocode.de> |
subscribers($page, $user = null, $style = null, $data = null) X-Ref |
Recursively search for matching subscriptions This function searches all relevant subscription files for a page or namespace. 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 author: Adrian Lang <lang@cosmocode.de> |
notifyAddresses(&$data) X-Ref |
Default callback for COMMON_NOTIFY_ADDRESSLIST Aggregates all email addresses of user who have subscribed the given page with 'every' style param: array &$data Containing the entries: author: Adrian Lang <lang@cosmocode.de> author: Steven Danz <steven-danz@kc.rr.com> |
file($id) X-Ref |
Return the subscription meta file for the given ID param: string $id The target page or namespace, specified by id; Namespaces return: string author: Adrian Lang <lang@cosmocode.de> |