This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Extensions » Datatype User account

Datatype User account

Datatype User account

Friday 03 September 2010 11:51:58 am - 3 replies

How can I add data to Datatype User account in php ?

For Datatype Textline it works like

$attributesData = array ( ) ;
$attributesData['firstname'] = "some data";

What to do in case of Datatype User account ?

Thanks in advance

Friday 03 September 2010 1:15:47 pm

Hi Shoaib

Each datatype has a "toString" method.

Look at this can help you something.

Friday 03 September 2010 4:05:18 pm


I guess you're creating your content object with eZContentFunctions::createAndPublishObject() if so the strings in the array should be formated for the fromString() method of each datatype. This feature is documented in a text file in source repository of eZ Publish :


Monday 06 September 2010 10:48:45 am



You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from