Object removal extension hook?

Author Message

Tuomo Syvänperä

Saturday 08 August 2009 12:29:32 am

I have created a custom ezcontentobjectedithandler which creates/updates a row in our own database when new objects of certain class are published. Is there a similar extension hook for object removal? Meaning, that when these objects of the same class are removed, I should be able to remove the row from our database also.

Heath

Saturday 08 August 2009 11:19:51 am

Yes, using the locations features in the admin manually of course [0]
or using the workflow event system to automate this process
(their are several which offer similar functionality). [1-4]

By what criteria would you like to determine weather assignment should be added?

By default to all objects of a specific content class or some other criteria?

I think I would recommend copying most recent related extension as the basis for your solution. [3]

Cheers,
Heath

[0] http://ez.no/doc/ez_publish/user_...sks/publishing_at_multiple_locations
[1] http://ez.no/developer/contribs/w...ed_user_placement_for_ez_publish_3_8
[2] http://ez.no/developer/contribs/workflow/automated_user_placment
[3] http://projects.ez.no/createmultiplelocationruleevent
[4] http://ez.no/developer/contribs/workflow/locations_workflow_event
[5] http://ez.no/developer/forum/developer/create_automatically_an_assignement

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

James

Saturday 08 August 2009 11:28:36 am

<i>http://ezpedia.org/en/ez/workflow</i>

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 11:36:57
Script start
Timing: Jan 18 2025 11:36:57
Module start 'layout'
Timing: Jan 18 2025 11:36:57
Module start 'content'
Timing: Jan 18 2025 11:36:58
Module end 'content'
Timing: Jan 18 2025 11:36:58
Script end

Main resources:

Total runtime0.7922 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 591.5469152.6250
Module start 'layout' 0.00600.0035 744.171939.4453
Module start 'content' 0.00950.7807 783.6172581.5781
Module end 'content' 0.79020.0019 1,365.195312.1641
Script end 0.7921  1,377.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4770160.0002
Check MTime0.00180.2258160.0001
Mysql Total
Database connection0.00160.196210.0016
Mysqli_queries0.739793.3715590.0125
Looping result0.00060.0736570.0000
Template Total0.760095.920.3800
Template load0.00220.273920.0011
Template processing0.757895.658820.3789
Template load and register function0.00010.012610.0001
states
state_id_array0.00070.091210.0007
state_identifier_array0.00100.126120.0005
Override
Cache load0.00170.2209240.0001
Sytem overhead
Fetch class attribute can translate value0.00080.097930.0003
Fetch class attribute name0.00160.207960.0003
XML
Image XML parsing0.00160.207830.0005
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00120.1502280.0000
String conversion0.00000.001240.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs