How to use eZImage in my own class

Author Message

Jun Zheng

Wednesday 26 November 2008 7:01:40 pm

Hi all:
I want to create a class with an ezimage related. It include some fields: ID, Type, ..., and it must contain a image, but I don't konw how to relate and use it.
Please give me some advice.Thank you very much!

Yannick Komotir

Thursday 27 November 2008 2:14:22 am

Hi
I don't understand can you give more information ?

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

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 11:38:16
Script start
Timing: Jan 18 2025 11:38:16
Module start 'layout'
Timing: Jan 18 2025 11:38:16
Module start 'content'
Timing: Jan 18 2025 11:38:17
Module end 'content'
Timing: Jan 18 2025 11:38:17
Script end

Main resources:

Total runtime0.7949 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.1328152.6250
Module start 'layout' 0.00710.0039 741.757839.4453
Module start 'content' 0.01110.7823 781.2031519.0156
Module end 'content' 0.79330.0015 1,300.21888.3125
Script end 0.7949  1,308.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4210160.0002
Check MTime0.00130.1614160.0001
Mysql Total
Database connection0.00070.089710.0007
Mysqli_queries0.751594.5403540.0139
Looping result0.00050.0630520.0000
Template Total0.762896.020.3814
Template load0.00290.359320.0014
Template processing0.759995.599120.3800
Template load and register function0.00020.022110.0002
states
state_id_array0.00050.065710.0005
state_identifier_array0.00160.201520.0008
Override
Cache load0.00230.2867100.0002
Sytem overhead
Fetch class attribute can translate value0.00070.085120.0003
Fetch class attribute name0.00140.170330.0005
XML
Image XML parsing0.00060.080720.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00100.1239160.0001
String conversion0.00000.001140.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs