Forums / Developer / Datatype - check for total number of validation errors on object

Datatype - check for total number of validation errors on object

Author Message

Sebastiaan van der Vliet

Thursday 24 March 2005 2:15:54 am

Hello,

I am developing a datatype eZCaptcha, that adds captcha functionality to objects to prevent automated form submissions. The eZCaptcha datatype creates temporary images that should be deleted if there are no validation errors on any of the attributes of the newly object.

It is possible to check the number of validation errors of a submitted object within a datatype?

Thanks for your time,
Sebastiaan

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

eZ debug

Timing: Jan 20 2025 01:05:23
Script start
Timing: Jan 20 2025 01:05:23
Module start 'content'
Timing: Jan 20 2025 01:05:23
Module end 'content'
Timing: Jan 20 2025 01:05:23
Script end

Main resources:

Total runtime0.0211 sec
Peak memory usage4,096.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 589.2109180.7969
Module start 'content' 0.00780.0052 770.007889.9766
Module end 'content' 0.01290.0081 859.984466.7031
Script end 0.0210  926.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002310.8628120.0002
Check MTime0.00115.0005120.0001
Mysql Total
Database connection0.00083.576910.0008
Mysqli_queries0.004420.656340.0011
Looping result0.00000.118420.0000
Template Total0.007736.510.0077
Template load0.00083.799210.0008
Template processing0.006932.697910.0069
Override
Cache load0.00062.630510.0006
General
dbfile0.003114.8459100.0003
String conversion0.00000.028230.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs