User Subtree-Notification Settings Table

Author Message

Luc Chase

Thursday 18 January 2007 8:18:10 am

Which table stores a users notification settings? Spicifying what subtree content they wish to be kept updated on.
I want to make every user be subscribed to a particular node.

The Web Application Service Provider

Kristof Coomans

Thursday 18 January 2007 9:15:27 am

Hi Luc

They are stored in the ezsubtree_notification_rule table.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Xavier Dutoit

Thursday 18 January 2007 9:16:23 am

Hi,

I'd suggest to use the API and not access the db directly.

X+

http://www.sydesy.com

Kristof Coomans

Thursday 18 January 2007 9:47:15 am

Some useful code: http://ezpedia.org/wiki/en/ez/adding_subtree_notification_rules

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Luc Chase

Monday 22 January 2007 1:55:59 am

Excellent! Thanks very much.

The Web Application Service Provider

Kristof Coomans

Monday 22 January 2007 2:13:12 am

Hi Luc

If you use the API (in a script, module, ... whatever) then please consider contributing it back to the community. Thanks!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Luc Chase

Wednesday 24 January 2007 3:39:48 am

Yes, if I will contribute any useful code. The requirements have expanded a bit... now would also like to allow users to have a weekly digest for all content changes EXCEPT those in a particular sub-tree (the Forum). What is the purpose of the 'use_digest' field in that table? Looks like it might allow this mix of notification rules as there is a row for each. Could this be the case? I know the user interface does not support this but looks like the DB might.

The Web Application Service Provider

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:12:53
Script start
Timing: Jan 18 2025 19:12:53
Module start 'layout'
Timing: Jan 18 2025 19:12:53
Module start 'content'
Timing: Jan 18 2025 19:12:54
Module end 'content'
Timing: Jan 18 2025 19:12:54
Script end

Main resources:

Total runtime0.7108 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.0469152.6406
Module start 'layout' 0.00660.0030 740.687539.4766
Module start 'content' 0.00960.6997 780.1641616.2344
Module end 'content' 0.70930.0014 1,396.398416.1250
Script end 0.7107  1,412.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4837160.0002
Check MTime0.00140.1915160.0001
Mysql Total
Database connection0.00110.156410.0011
Mysqli_queries0.645290.7764710.0091
Looping result0.00100.1423690.0000
Template Total0.677195.320.3386
Template load0.00230.326520.0012
Template processing0.674894.932520.3374
Template load and register function0.00030.045610.0003
states
state_id_array0.00070.101010.0007
state_identifier_array0.00070.095020.0003
Override
Cache load0.00200.2771250.0001
Sytem overhead
Fetch class attribute can translate value0.00070.103630.0002
Fetch class attribute name0.00120.173490.0001
XML
Image XML parsing0.00130.183130.0004
class_abstraction
Instantiating content class attribute0.00010.0088110.0000
General
dbfile0.00090.1258220.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs