exp:notificationsubscriptions
List the subtree notification subscriptions per user and subtree, or remove those whose content is gone (dry run unless --apply).
Script bin/php/notificationsubscriptions.php, code in kernel/private/classes/commands/notificationsubscriptions.php. Run it from the installation root, as the user the web server runs as:
./console exp:notificationsubscriptions --help
./console exp:notification:subscriptions --help
./console exp:notify:subscriptions --help
php bin/php/notificationsubscriptions.php --helpHelp text
Notification subscriptions
list the subtree subscriptions: user, node, path, class, last change below the node
remove-missing remove the subscriptions whose node no longer exists (lists them; --apply removes)
remove-missing without --apply removes nothing: it lists what it would remove. --dry-run is still
accepted and means the same as no flag; --apply together with --dry-run is a usage error (exit 2).
./console exp:notification:subscriptions list --user=editor --limit=20
./console exp:notification:subscriptions list --missing
./console exp:notification:subscriptions remove-missing
./console exp:notification:subscriptions remove-missing --applyOptions
| Option | Value | Help |
|---|---|---|
--user | required | only this user: a login or the user's content object id |
-q | required | only nodes whose name contains this |
--class | required | only nodes of this class identifier |
--missing | only subscriptions whose node is gone | |
--limit | required | how many (default 50) |
--offset | required | skip this many |
--addresses | also show the user's e-mail address (hidden by default) | |
--apply | remove-missing: remove the subscriptions (the default lists them and removes nothing) | |
--dry-run | remove-missing: the default, kept for scripts that pass it: list, remove nothing | |
--json | list: JSON |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/notificationsubscriptions.php, kernel/private/classes/commands/notificationsubscriptions.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.