internal package Foswiki::Contrib::MailerContrib::Subscription
On this page:
internal package Foswiki::Contrib::MailerContrib::Subscription
Object that represents a single subscription of a user to
notification on a page. A subscription is expressed as a page
spec (which may contain wildcards) and a depth of children of
matching pages that the user is subscribed to.
new($pages, $childDepth, $options)
-
$pages- Wildcarded expression matching subscribed pages -
$childDepth- Depth of children of $topic to notify changes for. Defaults to 0 -
$options- bitmask of Foswiki::Contrib::MailerContrib::Subscription options
stringify() -> string
Return a string representation of this object, in WebNotify format.matches($topic, $db, $depth) -> boolean
-
$topic- Topic object we are checking -
$db- Foswiki::Contrib::MailerContrib::UpData database of parent names -
$depth- If non-zero, check if the parent of the given topic matches as well. undef = 0.
covers($other, $db) -> $boolean
-
$other- Other subscription object we are checking -
$db- Foswiki::Contrib::MailerContrib::UpData database of parent names
- AA;B covers AB, AxB
- AA; covers AA;B
- A;B does not cover AA;