Adjusting event/approve!?

Author Message

Clemens T

Friday 02 September 2005 5:01:18 am

Hello all,
I'm currently trying to adjust the approve event to my needs.. which are:

- automatically subscribe a user-group to the item that is approved
- this usergroup should receive a mailmessage when the item is approved.

I'm having the following problems.. where should I put the notification-rule-subscription.. currently I'm editing: ezapprovecollaborationhandler.php , but my guess is that I can't get the NodeID (of the item that is going to be published) because on the bottom of this file, the item doesn't exist in the content-tree (it will probably be published after this event).

Is this correct, or is there a way for me to get the NodeId on the bottom of the :

    function handleCustomAction( &$module, &$collaborationItem )
    {
...
}

function?

Thanks for any help!
Clemens

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 14:30:29
Script start
Timing: Jan 20 2025 14:30:29
Module start 'layout'
Timing: Jan 20 2025 14:30:29
Module start 'content'
Timing: Jan 20 2025 14:30:30
Module end 'content'
Timing: Jan 20 2025 14:30:30
Script end

Main resources:

Total runtime1.0458 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.0069 589.1563152.6250
Module start 'layout' 0.00690.0032 741.781339.4453
Module start 'content' 0.01011.0344 781.2266403.7188
Module end 'content' 1.04450.0012 1,184.94538.1641
Script end 1.0457  1,193.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3091160.0002
Check MTime0.00130.1280160.0001
Mysql Total
Database connection0.00080.075310.0008
Mysqli_queries1.011596.7236460.0220
Looping result0.00040.0344440.0000
Template Total1.006696.320.5033
Template load0.00180.167720.0009
Template processing1.004996.088520.5024
Template load and register function0.00010.013610.0001
states
state_id_array0.00240.231510.0024
state_identifier_array0.00150.140120.0007
Override
Cache load0.00140.1338130.0001
Sytem overhead
Fetch class attribute can translate value0.00040.041710.0004
Fetch class attribute name0.00050.047210.0005
XML
Image XML parsing0.00010.010610.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00060.0567100.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/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs