Forums / Developer / EzP and XML -> Export data to feed external appi

EzP and XML -> Export data to feed external appi

Author Message

laurent le cadet

Friday 24 September 2004 1:42:46 am

Hello,

Is there a possibility to grab the XML structure and contents of a specific node from an ez db to feed an external appi?
Something like this :

<?xml version="1.0" encoding="UTF-8"?>
<folder>
   <title>which code for the title ?</title>
   <intro>which code for the intro ?</intro>
   <body>which code for the body ?</body>
</folder>

All this is store in one variable ?

Regards.

Laurent.

Björn Dieding@xrow.de

Friday 24 September 2004 4:45:41 am

eZContentObject::serialize()
eZContentObjectAttribute::serialize()
eZContentObjectVersion::serialize()
eZContentObjectTreeNode::serialize()

You mean probably something similar. In those functions is basicly the code you need. Unfortunatelly it is all dependant on a eZPackage. So to speed up the process, I would recommend writing your own stuff.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

laurent le cadet

Friday 24 September 2004 5:34:19 am

Hi Björn,

I never used the packages before. I test this functionnality in admin and manage to produce a .ezpkg.

I understand that you can use this file to import it in another ez site but my pupose is to use it a flash appi feed with external XML files.

Do you still thinking it's possible that way ?

Björn Dieding@xrow.de

Sunday 26 September 2004 11:07:52 pm

That's what those functions do.

They bring persistent object data ( attributes, contentobjects , nodes ) to XML. That's want you need.

As I said before the technique is all inside those functions. So you need to write your one ones.

A *.ezpkg is tared information stored as XML.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

laurent le cadet

Monday 27 September 2004 12:03:15 am

Thanks Björn,

I'm going to try something that way.

Laurent.

eZ debug

Timing: Jan 19 2025 01:19:14
Script start
Timing: Jan 19 2025 01:19:14
Module start 'content'
Timing: Jan 19 2025 01:19:15
Module end 'content'
Timing: Jan 19 2025 01:19:16
Script end

Main resources:

Total runtime1.3637 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 590.6719180.8125
Module start 'content' 0.00591.2523 771.4844569.7891
Module end 'content' 1.25810.1055 1,341.2734337.3672
Script end 1.3637  1,678.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2868210.0002
Check MTime0.00160.1156210.0001
Mysql Total
Database connection0.00080.057510.0008
Mysqli_queries1.291994.73062000.0065
Looping result0.00180.13301980.0000
Template Total1.337698.120.6688
Template load0.00210.151320.0010
Template processing1.335597.933620.6678
Template load and register function0.00010.007610.0001
states
state_id_array0.00110.080210.0011
state_identifier_array0.00110.083820.0006
Override
Cache load0.00170.1272350.0000
Sytem overhead
Fetch class attribute can translate value0.00130.098330.0004
Fetch class attribute name0.00150.112670.0002
XML
Image XML parsing0.00110.083730.0004
class_abstraction
Instantiating content class attribute0.00000.0013100.0000
General
dbfile0.00160.1190330.0000
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs