EZPDO User Forums

An Object-Relational Mapping and Data Persistence Solution for PHP

You are not logged in.

#1 2005-11-29 12:12:19

elnayaf
EZPDO Developer
Registered: 2005-04-24
Posts: 387

Examples of polymorphism

Jon kindly send us examples that show how polymorphism/inheritence can be easily persisted with EZPDO. The code for the examples can be downloaded here. Thanks Jon. -el

p.s. Jon's email to us:

jon wrote:

Dear EZPDO people,

A while back now I asked whether EZPDO was capable of hanlding polymorphism. With
your help I was able to prove that it can (at least with abstract classes if not
interfaces :). I also promised to write some examples.

I have finally had a chance to do just that. Please find attached a zip file
containing two examples (please place them in the example directory of the EZPDO
distribution for them to run).

The first "Polymorphism" - is simple example using the same books related
metaphor found in other examples.

The second "Polymorphism2" - is a better example of polymorphism (it's really
difficult to think of a decent way to show polymorphism with books :). This
example uses different shapes (Circle and Square) which extend the Shape abstract
class.

I hope you find them useful and that others do as well.

Regards and thanks for all your hard work. It is appeaciated.

Jon Moss

Offline

 

#2 2007-08-07 15:45:01

po134
EZPDO Enthusiast
Registered: 2007-07-25
Posts: 27

Re: Examples of polymorphism

link reports code 403. Might wanna check directory permission.

Thanks !

Offline

 

#3 2007-08-07 19:30:18

elnayaf
EZPDO Developer
Registered: 2005-04-24
Posts: 387

Re: Examples of polymorphism

should be working now.

Offline

 

#4 2009-02-08 03:50:55

cassandra_31
EZPDO Member
Registered: 2009-02-06
Posts: 3

Re: Examples of polymorphism

I think so and hopefully it will continue working.I hope it will not happen again.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

Sponsors