Get contentclass attribute by string identifier

Author Message

Willie Seabrook

Thursday 18 December 2003 9:35:12 pm

How to do this?

$contentObjectVersion->contentObjectAttributes();

returns an array and the identifier attribute in each element is set to null.

Regards,
Willie Seabrook

Gunnstein Lye

Friday 19 December 2003 8:12:52 am

You mean content object attribute, right?

$contentObjectVersion->dataMap() returns a hash with all attributes, with identifier as key.

Willie Seabrook

Friday 19 December 2003 10:42:02 pm

Thanks,

I used a raw database call in the end due to performance. (Its going to be going through about 30000 records) And 30000 * 15 raw mysql calls should be much faster than using the ezpublish API.

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

Main resources:

Total runtime0.6356 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.0085 589.1719152.6406
Module start 'layout' 0.00850.0034 741.812539.4766
Module start 'content' 0.01190.6222 781.2891500.2422
Module end 'content' 0.63400.0015 1,281.53138.1250
Script end 0.6356  1,289.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5669160.0002
Check MTime0.00160.2552160.0001
Mysql Total
Database connection0.00140.216710.0014
Mysqli_queries0.589692.7600570.0103
Looping result0.00040.0698550.0000
Template Total0.597394.020.2986
Template load0.00210.329020.0010
Template processing0.595293.635820.2976
Template load and register function0.00010.022410.0001
states
state_id_array0.00130.199310.0013
state_identifier_array0.00120.191620.0006
Override
Cache load0.00170.2643150.0001
Sytem overhead
Fetch class attribute can translate value0.00050.073920.0002
Fetch class attribute name0.00100.153840.0002
XML
Image XML parsing0.00060.090520.0003
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00110.1718160.0001
String conversion0.00000.001140.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
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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs