Author Topic

Frédéric DAVID

Thursday 10 May 2007 5:26:22 am

Comment48145

When you want to use the Exponential API, some functions required the & to add a reference.

You can try :

$dataMap =& $object->dataMap();
$attributeFile = $dataMap['file'];

$file =& $attributeFile->content();
$file->setAttribute( 'filepath', $newpath ); 
$file->store();

I haven't test this code, but it can help you a little.

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata