Datatype User account

Author Message

Shoaib Bagdadi

Friday 03 September 2010 2:51:58 am

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

Arkadiusz Ɓochowski

Friday 03 September 2010 4:15:47 am

Hi Shoaib

Each datatype has a "toString" method.

Look at this can help you something.

Damien Pobel

Friday 03 September 2010 7:05:18 am

Hi,

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 : http://github.com/ezsystems/ezpublish/blob/master/doc/features/3.9/to_from_string_datatype_functionality.txt

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Shoaib Bagdadi

Monday 06 September 2010 1:48:45 am

Thanks

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.