get all data in a ezObject (including translated data)

Author Message

Roberto Sacchi

Wednesday 04 March 2009 10:11:27 pm

Hi,
When I try to fetch an object using his ID I cannot find data about all other translations.
It seems I only get data depending on which siteaccess I use (I use eng or ita).

How to get all data?

Thanks

Rob

Roberto Sacchi

Wednesday 04 March 2009 11:01:05 pm

I find a solution:

$object->contentObjectAttributes(true,false,"eng-GB",false,false)

$object is an instance of eZContentObject class)

if I want all english datas.

I can find the translation language (for exemple "eng-GB") using $object->allLanguages() method.

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

Main resources:

Total runtime0.9066 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.0047 588.0625152.6406
Module start 'layout' 0.00470.0024 740.703139.4766
Module start 'content' 0.00710.8978 780.1797423.9297
Module end 'content' 0.90480.0017 1,204.10948.2813
Script end 0.9065  1,212.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3799160.0002
Check MTime0.00130.1383160.0001
Mysql Total
Database connection0.00060.067410.0006
Mysqli_queries0.865395.4467520.0166
Looping result0.00050.0569500.0000
Template Total0.876796.720.4384
Template load0.00300.328820.0015
Template processing0.873796.381120.4369
Template load and register function0.00020.021910.0002
states
state_id_array0.00080.086910.0008
state_identifier_array0.00120.137020.0006
Override
Cache load0.00260.2829150.0002
Sytem overhead
Fetch class attribute can translate value0.00070.074310.0007
Fetch class attribute name0.00100.108220.0005
XML
Image XML parsing0.00010.010810.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00070.0728100.0001
String conversion0.00000.000740.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs