What is Lazy Loading in PHP

Aug 07, 2009 Author: Developer
In PHP 5, using instantiating an undefined class in astatic way would cause a critical error. This mean that you must include all of theclass files that you need, better than loading them as they were…

The Registry Pattern in PHP

Jul 29, 2009 Author: SEO
By taking the Singleton pattern a little further, we can implement the Registry pattern.This allows us to use any object as a Singleton without it being written specificallythat way.

The Factory Pattern in PHP

Jul 29, 2009 Author: City Hall
The Factory pattern is used in scenarios where you have a generic class (the factory)that provides the facilities for creating instances of one or more separate specializedclasses that handle the same…

The Singleton Pattern in PHP

Jul 29, 2009 Author: LinuxAdmin
The Singleton is, probably, the simplest design pattern. Its goal is to provide accessto a single resource that is never duplicated, but that is made available to any portionof an application that requests…

PHP Reflection

Jul 13, 2009 Author: City Hall
With PHP's new object model comes the Reflection API a collection of functions and objects that allows you to examine the contents of a script's code, such as functions and objects, at runtime.