Subscription task

Author Message

Andrew Vorobyov

Wednesday 26 July 2006 5:20:34 pm

How is the best way to implement subscription mechanism in EZ?
I have users, they post news, other users subscribe to threads.

Thnx

Andrey Astakhov

Thursday 27 July 2006 12:30:06 am

Hi, Andrew.
I think you should read about ez notifications: http://ez.no/doc/ez_publish/technical_manual/3_8/features/notifications

Andrew Vorobyov

Thursday 27 July 2006 1:09:22 am

Sorry, doesn't help for me.

I need to know how to store connections between 2 objects in EZ and make selection in future.

Something like

========================
| User_Id | Subscribed_News_Id|
========================
| 1 | 2 |
| 156 | 22 |
| 13 | 156 |

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

Main resources:

Total runtime1.0285 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.0313151.1953
Module start 'layout' 0.00550.0042 739.2266220.6563
Module start 'content' 0.00971.0179 959.88284,206.3359
Module end 'content' 1.02760.0008 5,166.21887.8750
Script end 1.0284  5,174.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3397160.0002
Check MTime0.00140.1333160.0001
Mysql Total
Database connection0.00140.132010.0014
Mysqli_queries0.941691.5534570.0165
Looping result0.00060.0550550.0000
Template Total0.964693.820.4823
Template load0.00180.170520.0009
Template processing0.962993.622820.4814
Template load and register function0.00170.168810.0017
states
state_id_array0.00110.108810.0011
state_identifier_array0.00160.151820.0008
Override
Cache load0.00150.1419190.0001
Sytem overhead
Fetch class attribute can translate value0.00220.212820.0011
Fetch class attribute name0.00200.196630.0007
XML
Image XML parsing0.00020.022520.0001
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00370.3621100.0004
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs