PHP Class for Getting eZ Data

Author Message

Deane Barker

Wednesday 28 January 2004 8:17:52 am

I remember reading somewhere that there's a PHP class out there for pulling eZ publish data into an associative array. Two situations where this would be handy:

1. We have some PHP apps that would like to display some eZ data. We can't re-write the entire app in eZ publish, so we just need to "reach into" the eZ database and grab the data as we need it.

2. We'd like have some timed jobs that write out static HTML files using Smarty templates or some other method. These statis files would then be included in other apps (some not even written in PHP...).

I can do this with manual SQL calls, but didn't someone travel down this road already and build a class for it? Essentially, you could use this class for all the display, and eZ publish would just handle the administration of the data.

Deane

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

Main resources:

Total runtime0.0181 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.0041 588.1250151.2109
Module start 'layout' 0.00410.0040 739.335936.6484
Module start 'content' 0.00810.0083 775.984486.0156
Module end 'content' 0.01640.0017 862.000029.9922
Script end 0.0180  891.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.3649140.0002
Check MTime0.00137.2490140.0001
Mysql Total
Database connection0.00063.252610.0006
Mysqli_queries0.003720.552130.0012
Looping result0.00000.110810.0000
Template Total0.00116.410.0011
Template load0.00105.289110.0010
Template processing0.00021.039310.0002
Override
Cache load0.00073.922610.0007
General
dbfile0.004223.377380.0005
String conversion0.00000.033040.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