Use ez API in a function php call with ajax

Author Message

Florent Hache

Tuesday 05 January 2010 2:04:48 am

Hello Everybody,

I want to create ez object with the function createAndPublishObject with a php file.

I call my php file in ajax in the back office but it say the class eZContentFunctions was not found

So is it possible to use ez API in a php file call with ajax

Thanks a lot

Florent Hache

Jérôme Vieilledent

Wednesday 06 January 2010 4:46:38 am

Hi Florent

You should consider using ezjscore for that ;). Łukasz Serwatka and André R. just wrote an article about this really great extension :).

Florent Hache

Thursday 07 January 2010 1:21:37 am

Thanks Jerome i try it

Florent Hache

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

Main resources:

Total runtime0.7546 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.0547152.6406
Module start 'layout' 0.00690.0039 740.695339.4766
Module start 'content' 0.01080.7423 780.1719506.6484
Module end 'content' 0.75310.0014 1,286.82038.1250
Script end 0.7545  1,294.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4532160.0002
Check MTime0.00130.1713160.0001
Mysql Total
Database connection0.00130.168010.0013
Mysqli_queries0.702893.1432580.0121
Looping result0.00060.0782560.0000
Template Total0.686991.020.3435
Template load0.00230.307020.0012
Template processing0.684690.729520.3423
Template load and register function0.00010.018010.0001
states
state_id_array0.00120.154910.0012
state_identifier_array0.00080.110920.0004
Override
Cache load0.00180.2441170.0001
Sytem overhead
Fetch class attribute can translate value0.00050.065520.0002
Fetch class attribute name0.00110.140240.0003
XML
Image XML parsing0.00080.105620.0004
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00150.1979170.0001
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs