Forums / Developer / Acces to object data_map in workflow

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