Import database and create object with datas...

Author Message

Francis Poézévara

Tuesday 24 July 2007 7:06:26 am

Hello world,

I would like to take informations from a database and to create objects in eZ publish with them. Is it possible ?

I explain :
I have an old site with "Affairs", which have some informations like name, creator, etc., and I would like to create objects Affairs in my eZ publish site (Affairs is here a class, with attributes like name, creator, etc.)... Is there any way to do that "easily", or do I have to import the data in the database eZ publish (which is quite difficult to understand, etc.) ?

Thank you !

Francis

Donat Fritschy

Friday 27 July 2007 9:46:18 am

Hi Francis

Björn has done a great job on this. Check out his contribution:

http://ez.no/community/contribs/import_export/import_framework

Regards
Donat

http://www.webmanufaktur.ch - Developers united in eZ Publish: http://www.cjw-network.com

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 31 2025 04:33:00
Script start
Timing: Jan 31 2025 04:33:00
Module start 'layout'
Timing: Jan 31 2025 04:33:00
Module start 'content'
Timing: Jan 31 2025 04:33:00
Module end 'content'
Timing: Jan 31 2025 04:33:00
Script end

Main resources:

Total runtime0.0126 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.2578151.2266
Module start 'layout' 0.00460.0016 739.484436.6797
Module start 'content' 0.00620.0052 776.164190.1563
Module end 'content' 0.01130.0012 866.320329.9922
Script end 0.0125  896.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002217.8453140.0002
Check MTime0.00108.2322140.0001
Mysql Total
Database connection0.00065.122810.0006
Mysqli_queries0.001612.405330.0005
Looping result0.00000.072210.0000
Template Total0.00097.410.0009
Template load0.00075.831310.0007
Template processing0.00021.538510.0002
Override
Cache load0.00054.262410.0005
General
dbfile0.001310.048180.0002
String conversion0.00000.045640.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