custom validation and ezoe

Author Message

David Wirth

Wednesday 26 May 2010 10:35:07 am

I created a custom edit handler to add reCaptcha validation (why we're not just using the reCaptcha extension is a subject for a different thread) and am a bit mystified by something: When you click the ezoe's button to enable or disable the editor, the form submits but the standard validation does not occur while my custom validation routine does. I have not yet been able to figure out how the ez engine knows to skip form processing. 1) How does that work? and 2) is there something I can hook into in my custom edit handler so the captcha validation does not execute when you're just toggling the editor mode?

David Wirth

Wednesday 26 May 2010 10:54:45 am

Gah, never mind. I should have known I would figure it out five minutes after posting this. I added a test for $module->isCurrentAction( 'Publish' ) to my custom validator. On to the next mystery...

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 04:54:06
Script start
Timing: Jan 18 2025 04:54:06
Module start 'layout'
Timing: Jan 18 2025 04:54:06
Module start 'content'
Timing: Jan 18 2025 04:54:07
Module end 'content'
Timing: Jan 18 2025 04:54:07
Script end

Main resources:

Total runtime0.4574 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.9141152.6250
Module start 'layout' 0.00700.0038 740.539139.4453
Module start 'content' 0.01080.4450 779.9844460.2109
Module end 'content' 0.45580.0015 1,240.19538.1641
Script end 0.4573  1,248.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.7882160.0002
Check MTime0.00150.3183160.0001
Mysql Total
Database connection0.00110.239410.0011
Mysqli_queries0.402287.9488520.0077
Looping result0.00060.1332500.0000
Template Total0.423092.520.2115
Template load0.00230.493720.0011
Template processing0.420791.980920.2103
Template load and register function0.00020.043710.0002
states
state_id_array0.00110.245310.0011
state_identifier_array0.00100.217820.0005
Override
Cache load0.00180.387680.0002
Sytem overhead
Fetch class attribute can translate value0.00060.134010.0006
Fetch class attribute name0.00240.533130.0008
XML
Image XML parsing0.01002.191510.0100
class_abstraction
Instantiating content class attribute0.00000.002640.0000
General
dbfile0.01122.4386160.0007
String conversion0.00000.002240.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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/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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs