Ajax in eZ Publish: repeatable class eZAjaxContent

Author Message

Andrey Astakhov

Wednesday 22 July 2009 5:28:19 am

We could find eZAjaxContent class in several extensions:
- eZ Multiupload
- eZ Core
- and even new Online Editor (with class eZOEAjaxContent - a different name but the same content)

What is the reason to copy this class in different places? It worth to include this class to lib folder and use it as a generic class, isn't it?

Is there some roadmap concerning ajax concept in eZ Publish? I see that many developers use ajax for their extensions but the code is not reusable. Why?

André R.

Wednesday 22 July 2009 6:53:15 am

You missed a couple:
ezyui: http://svn.projects.ez.no/ezyui/trunk/ezyui/classes/ezyuiajaxcontent.php
ezflow: http://svn.ez.no/svn/extensions/ezflow/trunk/packages/ezflow_extension/ezextension/ezflow/classes/ezflowajaxcontent.php

As for the roadmap, there are plans to include ezyui in either 4.2 or 4.3.

The reason why I'm uncertain is: extensions are supposed to have releases in between the eZ Publish releases according to the new heartbeat release model, and yui 3.0 won't be final before q4 or q1 2010. So it might not show up in 4.2, or it will show up in 4.2 as early preview version (as in not a stable api yet) using yui 2.7.0 for the time being.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 01:21:18
Script start
Timing: Jan 31 2025 01:21:18
Module start 'layout'
Timing: Jan 31 2025 01:21:18
Module start 'content'
Timing: Jan 31 2025 01:21:18
Module end 'content'
Timing: Jan 31 2025 01:21:18
Script end

Main resources:

Total runtime0.0268 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.2656151.2266
Module start 'layout' 0.00520.0047 739.4922220.7344
Module start 'content' 0.00990.0154 960.2266997.8359
Module end 'content' 0.02530.0014 1,958.062529.9922
Script end 0.0267  1,988.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.5990140.0002
Check MTime0.00114.1637140.0001
Mysql Total
Database connection0.00082.993210.0008
Mysqli_queries0.00259.385730.0008
Looping result0.00000.052610.0000
Template Total0.00103.710.0010
Template load0.00082.832810.0008
Template processing0.00020.848110.0002
Override
Cache load0.00051.816410.0005
General
dbfile0.00269.669080.0003
String conversion0.00000.025840.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