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 15 2025 02:08:19
Script start
Timing: Jan 15 2025 02:08:19
Module start 'layout'
Timing: Jan 15 2025 02:08:19
Module start 'content'
Timing: Jan 15 2025 02:08:20
Module end 'content'
Timing: Jan 15 2025 02:08:20
Script end

Main resources:

Total runtime1.5231 sec
Peak memory usage6,144.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0174 686.4531183.6875
Module start 'layout' 0.01740.0048 870.140652.5625
Module start 'content' 0.02211.4986 922.70311,660.3203
Module end 'content' 1.52070.0024 2,583.023464.5469
Script end 1.5231  2,647.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00660.4364160.0004
Check MTime0.00140.0923160.0001
Mysql Total
Database connection0.00200.132810.0020
Mysqli_queries1.458295.7333460.0317
Looping result0.00040.0282440.0000
Template Total1.420693.320.7103
Template load0.00460.305120.0023
Template processing1.415992.959520.7080
Template load and register function0.00140.092810.0014
states
state_id_array0.00350.229410.0035
state_identifier_array0.00300.198220.0015
Override
Cache load0.00400.2625130.0003
Sytem overhead
Fetch class attribute can translate value0.00070.048410.0007
Fetch class attribute name0.00670.439110.0067
XML
Image XML parsing0.00010.007310.0001
class_abstraction
Instantiating content class attribute0.00000.002210.0000
General
dbfile0.00550.3591100.0005
String conversion0.00000.000640.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