Action on "after update" object

Author Message

Christophe Saint-Pierre

Wednesday 24 December 2008 10:55:47 am

Hi ,
I would like to konw if it was possible to execute an action after a action of update an object ?
For example I would like to call a program or a function after the update of an image.
And I don't know how to do it.
With a extension it is possible ?

Thanks

J-A Eberhard

Thursday 25 December 2008 12:12:30 am

This is buit in, have a look at the content / publish / after trigger.
The built a workflow and choose the affected version

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

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 18 2025 14:56:57
Script start
Timing: Jan 18 2025 14:56:57
Module start 'layout'
Timing: Jan 18 2025 14:56:57
Module start 'content'
Timing: Jan 18 2025 14:56:59
Module end 'content'
Timing: Jan 18 2025 14:56:59
Script end

Main resources:

Total runtime1.3788 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.2188152.6250
Module start 'layout' 0.00600.0033 741.843839.4453
Module start 'content' 0.00931.3683 781.2891521.2031
Module end 'content' 1.37760.0011 1,302.49228.3203
Script end 1.3788  1,310.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2263160.0002
Check MTime0.00130.0933160.0001
Mysql Total
Database connection0.00070.053310.0007
Mysqli_queries1.336696.9385540.0248
Looping result0.00050.0398520.0000
Template Total1.335096.820.6675
Template load0.00220.160420.0011
Template processing1.332896.660320.6664
Template load and register function0.00010.010310.0001
states
state_id_array0.00260.186510.0026
state_identifier_array0.00250.181120.0012
Override
Cache load0.00180.1302130.0001
Sytem overhead
Fetch class attribute can translate value0.00050.034220.0002
Fetch class attribute name0.00100.069730.0003
XML
Image XML parsing0.00140.100720.0007
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00270.1924150.0002
String conversion0.00000.000740.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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