Using ezImage in custom module

Author Message

Bruce Morrison

Sunday 17 April 2005 10:52:45 pm

I'm currently creating a custom module to allow for an existing database to be accessed via eZ publish. This module also will allow for the editing of the content in the database. I'm doing this by extending the eZPersistentObject class.

Items in the database have an associated image. I had hoped to utilise the ezImage data type functionality for the management of these images. Initial investigations indicate this may not be possible as the data type is linked to a contentobject_attribute_id.

I believe that if I do utilise the data type in my module then it has the possibility of interfering content modules images.

Can anyone tell me if what I've described is possible?

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 19 2025 11:36:03
Script start
Timing: Jan 19 2025 11:36:03
Module start 'layout'
Timing: Jan 19 2025 11:36:03
Module start 'content'
Timing: Jan 19 2025 11:36:03
Module end 'content'
Timing: Jan 19 2025 11:36:03
Script end

Main resources:

Total runtime0.0161 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.0057 589.1563152.6250
Module start 'layout' 0.00570.0031 741.781339.4453
Module start 'content' 0.00890.0050 781.226689.3203
Module end 'content' 0.01380.0022 870.546930.3047
Script end 0.0160  900.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.3408140.0002
Check MTime0.00116.5944140.0001
Mysql Total
Database connection0.00074.088210.0007
Mysqli_queries0.003421.174030.0011
Looping result0.00000.099210.0000
Template Total0.001710.710.0017
Template load0.00105.957510.0010
Template processing0.00084.708810.0008
Override
Cache load0.00063.870410.0006
General
dbfile0.00031.814580.0000
String conversion0.00000.048940.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