You are here: The Proxy Pattern in PHP 5 « PHP Programming Language « IT news, forums, messages
The Proxy Pattern in PHP 5

Posted by FluffyCat on 10/13/31 11:56

This week I've I continued my series of design patterns examples using
PHP 5 with the Bridge Pattern and the Flyweight Pattern.

Here now is my 19th design pattern example using PHP 5, the Proxy
Pattern.

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

In the proxy pattern one class stands in for and controll all calls to
another class.

This could be because the real subject class is on another platform,
the real subject is "expensive" to create so we only create it if
necessary, or to controll access to the real subject class.

A proxy can also add access functionality, such as keeping track of
how many times a real subject is called.

Proxy is a nice little pattern, being both fairly simple and widely
used.

 

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

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