Reply to The Observer Pattern in PHP 5

Your name:

Reply:


Posted by FluffyCat on 05/09/06 02:10

Last week I continued my series of design patterns examples using PHP
5. Here now is my 14th example, the Observer pattern.

http://www.fluffycat.com/PHP-Design-Patterns-Observer/

In the Observer Pattern, a Subject object notifies an Observer object
if it's the Subject object's state changes.

Pretty simple and fairly useful.

An application for this pattern might be having a Subject object with
the state of a web page, and an Observer object which can produce RSS
feeds. If the Subject page changes it notifies the Observer object,
which produces an RSS feed for the changed page.

[Back to original 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

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