Howto use the new Image System in modules?

Author Message

Jerry Jalava

Sunday 04 January 2004 1:41:59 am

Hi,

I just updated from 3.2 to 3.3 and I have big problems with few of my modules...

I use image uploading in them and in 3.2 this worked:
...
include_once( "kernel/common/image.php" );
$image =& eZImage::create( $contentObjectAttributeID , $version );
$image->setAttribute( "contentobject_attribute_id", $contentObjectAttributeID );
$image->setAttribute( "version", $version );
...

But now it doesn't anymore... I get error: Undefined class name 'ezimage'.

So, how should I use image system in 3.3?

Regards,
Jerry

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

Main resources:

Total runtime0.0218 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.2656151.2266
Module start 'layout' 0.00540.0037 739.4922220.7188
Module start 'content' 0.00920.0112 960.2109993.7266
Module end 'content' 0.02030.0015 1,953.937529.9922
Script end 0.0218  1,983.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.8598140.0002
Check MTime0.00115.0519140.0001
Mysql Total
Database connection0.00104.581210.0010
Mysqli_queries0.00219.600330.0007
Looping result0.00000.060110.0000
Template Total0.00114.810.0011
Template load0.00083.888810.0008
Template processing0.00020.907510.0002
Override
Cache load0.00062.606710.0006
General
dbfile0.00135.842580.0002
String conversion0.00000.036040.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