Errors summary on publish of object

Author Message

Nabil Alimi

Wednesday 04 October 2006 5:40:04 am

Hi,

The error summary that occured on an object are stored into the $validation.attributes variable. But this array has no index. It is a bit more difficult if i want to display errors related to a field next to it.
Having the summary into an hash would be nice. :)

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Claudia Kosny

Thursday 05 October 2006 12:23:05 am

Hello Nabil

If necessary you could always put it into a hash which has the identifiers or ids as key, although it means one additional array iteration. But you are right, having such an index per default would be nice.

Greetings from Luxembourg

Claudia

Nabil Alimi

Thursday 05 October 2006 1:06:28 am

Hi Claudia,

That's how I processed. ;)

But that makes more templating processins for something that could be built-in.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

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:04:39
Script start
Timing: Jan 18 2025 11:04:39
Module start 'layout'
Timing: Jan 18 2025 11:04:39
Module start 'content'
Timing: Jan 18 2025 11:04:40
Module end 'content'
Timing: Jan 18 2025 11:04:40
Script end

Main resources:

Total runtime0.6613 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.0156152.6250
Module start 'layout' 0.00600.0031 740.640639.4453
Module start 'content' 0.00910.6506 780.0859530.1484
Module end 'content' 0.65970.0015 1,310.234412.1563
Script end 0.6612  1,322.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4877160.0002
Check MTime0.00130.1988160.0001
Mysql Total
Database connection0.00070.108710.0007
Mysqli_queries0.615793.1044570.0108
Looping result0.00080.1216550.0000
Template Total0.629095.120.3145
Template load0.00220.325720.0011
Template processing0.626894.793220.3134
Template load and register function0.00010.014310.0001
states
state_id_array0.00080.124510.0008
state_identifier_array0.00100.145820.0005
Override
Cache load0.00180.2682170.0001
Sytem overhead
Fetch class attribute can translate value0.00080.119420.0004
Fetch class attribute name0.00100.144440.0002
XML
Image XML parsing0.00050.081420.0003
class_abstraction
Instantiating content class attribute0.00000.001950.0000
General
dbfile0.00080.1152160.0000
String conversion0.00000.001540.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs