Saturday 24 May 2008 10:11:18 am
Hi, I'm using a custom datatype who stores a birthday date as a data_text (1925-12-20 by ex.). I'm not the author of this datatype, and I encouter a problem when I try to create instances of the class who uses this datatype from PHP. The problem is simply that the datatype is empty although the object is correctly created. To create the object from PHP, I use the eZContentFunctions::createAndPublishObject method, and I set my attribute content like this :
$attributes_content = array(
...
'birthday' => "1925-12-20",
...
);
I have searched into the forum, and I seen that the datatype must implement the storeObjectAttribute method, and my datatype doesn't. The problem is that into the storeObjectAttribute method, I don't know how to retrieve the value passed to eZContentFunctions::createAndPublishObject... I'm very lost because this is the first time I work with custom datatypes ! Thanks in advance !
eZ Publish Freelance
web : http://www.webaxis.fr
|