Forums / Setup & design / class inheritance

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.

eZ debug

Timing: Jan 18 2025 02:49:48
Script start
Timing: Jan 18 2025 02:49:48
Module start 'content'
Timing: Jan 18 2025 02:49:49
Module end 'content'
Timing: Jan 18 2025 02:49:49
Script end

Main resources:

Total runtime1.1640 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 587.6094180.8438
Module start 'content' 0.00871.0195 768.4531704.7813
Module end 'content' 1.02820.1358 1,473.2344336.4609
Script end 1.1640  1,809.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00500.4269210.0002
Check MTime0.00230.1976210.0001
Mysql Total
Database connection0.00080.065810.0008
Mysqli_queries1.072892.15792120.0051
Looping result0.00240.20802100.0000
Template Total1.109895.320.5549
Template load0.00240.205120.0012
Template processing1.107495.130020.5537
Template load and register function0.00010.007510.0001
states
state_id_array0.00590.506710.0059
state_identifier_array0.00090.079620.0005
Override
Cache load0.00210.1797330.0001
Sytem overhead
Fetch class attribute can translate value0.00180.157660.0003
Fetch class attribute name0.00160.1370100.0002
XML
Image XML parsing0.00180.150660.0003
class_abstraction
Instantiating content class attribute0.00000.0017120.0000
General
dbfile0.00270.2361420.0001
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs