Notification and users filter

Author Message

laurent le cadet

Thursday 02 April 2009 2:44:08 am

Hi,

I have 2 kinds of of users.
First one (A) can use notification to recieve informations about products published by the second one (B).

It works well with the classic eZ notification.

I would like to let (A) to allowed (B) to recieve or not notification about his products.

What I imagine is to add an attribute in the product classe definition ( i.e multichoice enhancedselection ) to let (A) to choose which (B) users will be concerned by his product.

The selection value identifier could be the parent_node_id of the (B) user.

But I don't know exactly how notification works.

Is my idea realistic?
Could someone point me the right direction?

Best regards.

Laurent

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 20 2025 02:23:56
Script start
Timing: Jan 20 2025 02:23:56
Module start 'layout'
Timing: Jan 20 2025 02:23:56
Module start 'content'
Timing: Jan 20 2025 02:23:57
Module end 'content'
Timing: Jan 20 2025 02:23:57
Script end

Main resources:

Total runtime1.3323 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.1563152.6250
Module start 'layout' 0.00680.0039 741.781339.4453
Module start 'content' 0.01071.3200 781.2266435.9141
Module end 'content' 1.33080.0015 1,217.14068.3203
Script end 1.3323  1,225.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2325160.0002
Check MTime0.00140.1023160.0001
Mysql Total
Database connection0.00080.058010.0008
Mysqli_queries1.292396.9954460.0281
Looping result0.00040.0281440.0000
Template Total1.299097.520.6495
Template load0.00170.130020.0009
Template processing1.297397.369120.6486
Template load and register function0.00010.008210.0001
states
state_id_array0.00090.066410.0009
state_identifier_array0.00070.051220.0003
Override
Cache load0.00140.1035160.0001
Sytem overhead
Fetch class attribute can translate value0.00060.044110.0006
Fetch class attribute name0.00090.065520.0004
XML
Image XML parsing0.00060.046010.0006
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00120.0916160.0001
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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs