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.