Forums / Extensions / Datatype User account

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

eZ debug

Timing: Jan 29 2025 13:33:48
Script start
Timing: Jan 29 2025 13:33:48
Module start 'content'
Timing: Jan 29 2025 13:33:48
Module end 'content'
Timing: Jan 29 2025 13:33:48
Script end

Main resources:

Total runtime0.0165 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 587.9063180.8438
Module start 'content' 0.00480.0059 768.750098.0234
Module end 'content' 0.01060.0058 866.773470.7031
Script end 0.0164  937.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.001810.9032120.0001
Check MTime0.00085.1331120.0001
Mysql Total
Database connection0.00063.811110.0006
Mysqli_queries0.002615.458440.0006
Looping result0.00000.078020.0000
Template Total0.005533.610.0055
Template load0.00074.296610.0007
Template processing0.004829.243810.0048
Override
Cache load0.00053.036810.0005
General
dbfile0.002816.9493100.0003
String conversion0.00000.024630.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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