Thursday 25 June 2009 6:08:14 am
Hi everybody, I'm developping a xml import script who create and publish object on eZ database. There are many link to image on these files and I search into the kernel what are the methods and classes I have to use in order to insert correctly all image as well as I make all this process into Admin interface. I see that the datatype ezimage is link to the ezPersistentObject class like an ezString but ezimage have to be declared with a xml matrix in data_text. I suppose it will be more complicated that only use this kind of code :
$objDataMap=$this->current_eZ_object->dataMap();
$imageAttr=$objDataMap['image'];
$imageAttr->setAttribute('data_text',$tag->nodeValue);
$nameAttr->store();
In fact, I search for all process that eZ use for create an object with ezimage attribute without the Admin interface. Have you any idea who could help me ? Thanks
|