Monday 07 May 2007 4:30:13 am
Hi Arnaud, The ezauthor datatype is a composite datatype (its content is actually an object of class eZAuthor I think you need to create a new eZAuthor object and then set the contentobjectattribute content, before trying to store the attribute
$author = new eZAuthor( );
$i = 0;
foreach ( $authorIDArray as $id )
{
$author->addAuthor( $authorIDArray[$i], $authorNameArray[$i], $authorEmailArray[$i] );
$i++;
}
$contentObjectAttribute->setContent( $author );
Lazaro
http://www.mzbusiness.com
|