class inheritance

Author Message

Marko Žmak

Thursday 08 July 2004 5:45:15 am

Is there any possibility to create classes in EZ that are derived from some other clases?

For example, I want to extend the class Folder and add some new attributes to it, but without changing the original class. Is there any posibility to make a new clas that inherits attributes from Folder class and adds new ones?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Bård Farstad

Thursday 08 July 2004 5:49:35 am

No, class inheritance is not supported.

--bård

Documentation: http://ez.no/doc

Alex Jones

Thursday 08 July 2004 7:13:53 am

Marko, in the Class setup area you can copy a class and use it to build a new class. It isn't quite inherited because any changes to the original class will not cascade to the new one, but it will cut down on the amount of time spent creating similar classes.

Alex
bald_technologist on the IRC channel: #eZpublish
http://www.agrussell.com :: http://www.cuttingedge.com

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Marko Žmak

Saturday 10 July 2004 8:02:30 am

Is there going to be class inheritance support soon in EZ?

Or is there some workaround for this?

Thx.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Paul Forsyth

Saturday 10 July 2004 8:30:58 am

The workaround is to do this in the object, not in the class. If you add a object relation list, or just an object relation you can link in other objects of any class to hold the info you need.

paul

--
http://www.visionwt.com

Marko Žmak

Saturday 10 July 2004 8:57:54 am

How do I use object relations exactly? What are they for? I searched the docs but it doesn't seem t be very well documented.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

David Dorninger

Tuesday 14 September 2010 6:50:58 am

Hi!

Is there still no solution to that? I would also like to inherit Attributes from another class as I have a few classes that only differ in one or two fields and all the other fields are the same.

Thx.

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 30 2025 16:39:25
Script start
Timing: Jan 30 2025 16:39:25
Module start 'layout'
Timing: Jan 30 2025 16:39:25
Module start 'content'
Timing: Jan 30 2025 16:39:25
Module end 'content'
Timing: Jan 30 2025 16:39:25
Script end

Main resources:

Total runtime0.0225 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.0313151.1953
Module start 'layout' 0.00540.0037 739.2266220.6563
Module start 'content' 0.00910.0120 959.88281,005.7734
Module end 'content' 0.02110.0013 1,965.656337.9922
Script end 0.0225  2,003.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.5421140.0002
Check MTime0.00115.1009140.0001
Mysql Total
Database connection0.00073.182010.0007
Mysqli_queries0.002510.909630.0008
Looping result0.00000.058310.0000
Template Total0.00104.310.0010
Template load0.00083.426710.0008
Template processing0.00020.866710.0002
Override
Cache load0.00062.533510.0006
General
dbfile0.00104.519280.0001
String conversion0.00000.026540.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