Collect information with custom datatypes

Author Message

Matthieu Sévère

Monday 22 February 2010 7:37:35 am

Hello !

I have developed a custom datatype but I can't get him collect information.

I have implemented the following methods (related to colleciton):

isInformationCollector();
fetchCollectionAttributeHTTPInput();

But when I go to "collected information" in the BO I see every datatype but mine ...

Note : I have implemented collect & result templates and I checked in the database and data of my datatype is not in the infocollector_attribute table.

Any one knows wich method do I need to implement to get this working ?

Thank you :)

--
eZ certified developer: http://ez.no/certification/verify/346216

Matthieu Sévère

Monday 22 February 2010 8:13:34 am

Ok, I just found the answer the method "fetchCollectionAttributeHTTPInput()" HAS to return true (or false) because that's the value returned by $attribute->collectInformation()

To conclude the two methods above are the only one needed (but both are needed).

--
eZ certified developer: http://ez.no/certification/verify/346216

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 02:47:26
Script start
Timing: Jan 18 2025 02:47:26
Module start 'layout'
Timing: Jan 18 2025 02:47:26
Module start 'content'
Timing: Jan 18 2025 02:47:27
Module end 'content'
Timing: Jan 18 2025 02:47:27
Script end

Main resources:

Total runtime0.8251 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.0077 589.4766152.6406
Module start 'layout' 0.00770.0046 742.117239.4766
Module start 'content' 0.01230.8113 781.5938491.3359
Module end 'content' 0.82360.0015 1,272.92978.1250
Script end 0.8251  1,281.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4600160.0002
Check MTime0.00140.1696160.0001
Mysql Total
Database connection0.00060.078410.0006
Mysqli_queries0.774893.8975520.0149
Looping result0.00060.0735500.0000
Template Total0.789795.720.3949
Template load0.00250.298720.0012
Template processing0.787395.411020.3936
Template load and register function0.00010.013110.0001
states
state_id_array0.00160.189810.0016
state_identifier_array0.00080.101720.0004
Override
Cache load0.00210.2505160.0001
Sytem overhead
Fetch class attribute can translate value0.00140.167710.0014
Fetch class attribute name0.00130.152130.0004
XML
Image XML parsing0.00050.055210.0005
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00080.0999160.0001
String conversion0.00000.001340.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs