Users notifications

Author Message

Carlos Revillo

Wednesday 06 June 2007 3:17:27 am

Hi. i've developed an extension to let new users register at my site. In the last step of the proccess, system show the users some zones of my site so the user can "subscribe" to it and so, receive notifications about any changes of the contents inside the zones they want.

I have used eZSubtreeNotificationRule::create() for this, and worked as expected, but i want something more. I want all users be subscribed by default to all approve events, so when he add new content, he can receive notificatios about aprrovde or denied objects...

How can be a new user be "subscribed" by default to these type of notifications?

Thank you.

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 19 2025 01:00:28
Script start
Timing: Jan 19 2025 01:00:28
Module start 'layout'
Timing: Jan 19 2025 01:00:28
Module start 'content'
Timing: Jan 19 2025 01:00:28
Module end 'content'
Timing: Jan 19 2025 01:00:28
Script end

Main resources:

Total runtime0.0309 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 590.8047152.6094
Module start 'layout' 0.00640.0039 743.414139.4297
Module start 'content' 0.01020.0170 782.843885.0703
Module end 'content' 0.02730.0036 867.914130.3047
Script end 0.0308  898.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00268.5149140.0002
Check MTime0.00113.6636140.0001
Mysql Total
Database connection0.00113.427310.0011
Mysqli_queries0.003310.556030.0011
Looping result0.00000.057910.0000
Template Total0.00217.010.0021
Template load0.00123.867510.0012
Template processing0.00093.076710.0009
Override
Cache load0.00082.601010.0008
General
dbfile0.009129.524380.0011
String conversion0.00000.038640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs