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.

eZ debug

Timing: Jan 18 2025 02:20:07
Script start
Timing: Jan 18 2025 02:20:07
Module start 'layout'
Timing: Jan 18 2025 02:20:07
Module start 'content'
Timing: Jan 18 2025 02:20:07
Module end 'content'
Timing: Jan 18 2025 02:20:07
Script end

Main resources:

Total runtime0.0176 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.0234152.6250
Module start 'layout' 0.00670.0034 741.648439.4297
Module start 'content' 0.01010.0057 781.078193.4766
Module end 'content' 0.01580.0018 874.554734.3047
Script end 0.0175  908.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.8704140.0002
Check MTime0.00127.0987140.0001
Mysql Total
Database connection0.00074.098210.0007
Mysqli_queries0.002715.282930.0009
Looping result0.00000.147910.0000
Template Total0.00158.310.0015
Template load0.00084.434810.0008
Template processing0.00073.859410.0007
Override
Cache load0.00063.227010.0006
General
dbfile0.00031.939280.0000
String conversion0.00000.061140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs