Custom Action Handler

Author Message

David Wirth

Wednesday 27 January 2010 6:04:12 am

I am attempting to understand how the custom action handler described at http://serwatka.net/blog/do_you_need_action works. I created a test script following his rules and it works but I think I'll be able to develop better eZ apps if I understand how it's working.

The form action is 'content/action' just like it is for any other form in eZ. It would make sense to me if the custom code were an extension of an action handler class but it's not -- it's a standalone function. This means there are (at least) two action handler functions defined. When content/action is called it seems that eZ can use either the standard action function or the custom function. Is eZ executing both functions or is it somehow choosing between them?

Also, is this the standard way to customize action handling?

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 30 2025 00:44:55
Script start
Timing: Jan 30 2025 00:44:55
Module start 'layout'
Timing: Jan 30 2025 00:44:55
Module start 'content'
Timing: Jan 30 2025 00:44:56
Module end 'content'
Timing: Jan 30 2025 00:44:56
Script end

Main resources:

Total runtime0.6634 sec
Peak memory usage4,096.0000 KB
Database Queries47

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.1094151.1953
Module start 'layout' 0.00470.0025 739.304736.6172
Module start 'content' 0.00710.6555 775.9219404.0781
Module end 'content' 0.66260.0007 1,180.00007.8750
Script end 0.6633  1,187.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4525160.0002
Check MTime0.00130.2005160.0001
Mysql Total
Database connection0.00070.108110.0007
Mysqli_queries0.632895.3988470.0135
Looping result0.00030.0501450.0000
Template Total0.639396.420.3196
Template load0.00180.272320.0009
Template processing0.637596.099720.3187
Template load and register function0.00010.015210.0001
states
state_id_array0.00060.094210.0006
state_identifier_array0.00100.155820.0005
Override
Cache load0.00150.219580.0002
Sytem overhead
Fetch class attribute can translate value0.00050.078810.0005
Fetch class attribute name0.00050.080020.0003
XML
Image XML parsing0.00120.184210.0012
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00190.2817160.0001
String conversion0.00000.001040.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
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs