You are here: Re: References between nested objects (PHP4) « PHP Programming Language « IT news, forums, messages
Re: References between nested objects (PHP4)

Posted by Markus Ernst on 09/07/05 14:27

Chung Leong wrote:
>
> I'm an advocate for keeping things simple and obvious. Unless there's
> a good reason to use inheritance, I generally avoid it. It's easier to
> think that a book is a book, than a book being an extension of some
> generalized, abstract object.

Yes, this is a very useful guideline one sometimes tends to forget. Anyway
in this case the generalized abstract object is useful for handling the
relations between different things - i.e. a text element can be assigned to
a page, or to an author (biography), or to a book (abstract). A page can be
assigned to a rubric, or to an author (extended biography, works list...),
or to a book (review, excerpt...). Therefore I decided to use one
centralized ID and relations handling.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация