Acces to object data_map in workflow

Author Message

ludo thomas

Thursday 30 June 2005 2:46:22 am

hello,

I'm looking for accessing to email information(e.g)
that is in my object data_map.

I acces to the object_id without any problem:

 $parameters = $process->attribute( 'parameter_list' );
        $objectID =& $parameters['object_id'];

but how can I get the content of the object?

I tried something like:

 $data_map=& $parameters['data_map'];
$email = $data_map['email']->attribute('email');

but it doesn't work.
any help?

Björn Dieding@xrow.de

Thursday 30 June 2005 4:10:07 am

here you go....

$obj =& eZContentObject::fetch($parameters['object_id']);
$data_map=& $obj->attribute( 'data_map' );
$email = $data_map['email']->content();

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

ludo thomas

Thursday 30 June 2005 5:06:41 am

thank you for your precious help.
it's exactly what I needed.

Ludo

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 19 2025 00:12:37
Script start
Timing: Jan 19 2025 00:12:37
Module start 'layout'
Timing: Jan 19 2025 00:12:37
Module start 'content'
Timing: Jan 19 2025 00:12:38
Module end 'content'
Timing: Jan 19 2025 00:12:38
Script end

Main resources:

Total runtime1.0678 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.0044 587.9375152.6250
Module start 'layout' 0.00450.0027 740.562539.4453
Module start 'content' 0.00721.0590 780.0078542.1328
Module end 'content' 1.06620.0016 1,322.140612.1563
Script end 1.0678  1,334.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2939160.0002
Check MTime0.00120.1168160.0001
Mysql Total
Database connection0.00070.067710.0007
Mysqli_queries1.014094.9623570.0178
Looping result0.00060.0602550.0000
Template Total1.032796.720.5163
Template load0.00190.181320.0010
Template processing1.030796.525820.5154
Template load and register function0.00010.010010.0001
states
state_id_array0.00150.144810.0015
state_identifier_array0.00160.148120.0008
Override
Cache load0.00160.1472230.0001
Sytem overhead
Fetch class attribute can translate value0.00080.075820.0004
Fetch class attribute name0.00290.274650.0006
XML
Image XML parsing0.00090.085020.0005
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00180.1644220.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
3content/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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs