Extending Class Attributes

Author Message

Tristan Koen

Thursday 22 May 2003 5:45:04 am

I was wondering if there was an easy way to extend specific class attributes without writing a new one.

I would like to extend the Author attribute to include additional information such as an image and a biography.

If it is not possible, can anyone think of a way to do this without writing a new attribute. I don't mind doing it but it makes upgrading a pain.

An alternate solution I had in mind was to create a new class called Author and then to make instances of these classes for each author. I should then theoretically be able to relate it to the original article. Is this a viable solution? If so, where would I create an instance of the author, considering that the associated article could exist in a number of different folders.

Sorry if this is a newbie question, but I am a newbie!

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

Main resources:

Total runtime0.0185 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.0079 587.9141152.6250
Module start 'layout' 0.00790.0029 740.539139.4453
Module start 'content' 0.01080.0056 779.984485.1172
Module end 'content' 0.01640.0020 865.101630.3047
Script end 0.0184  895.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002814.9514140.0002
Check MTime0.00116.0418140.0001
Mysql Total
Database connection0.00063.314710.0006
Mysqli_queries0.003720.001530.0012
Looping result0.00000.086510.0000
Template Total0.00168.810.0016
Template load0.00084.425110.0008
Template processing0.00084.327010.0008
Override
Cache load0.00062.994410.0006
General
dbfile0.00021.277180.0000
String conversion0.00000.049140.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.0002 secs