|
Sponsors
|
Information TechnologyLatest Webmaster News
Implementing the Data Mapper Design Pattern in PHP 5
In this first part of a five-part series, I introduce you to implementing the Data Mapper design pattern in PHP 5. This pattern attempts to solve the issue of the strong coupling that often exists between the domain objects present in an application and the underlying persistence mechanism. This benefit comes at a cost, since data mappers add a new layer of complexity. Living with this minor... Defining an Abstract Class with Restrictive Constructors in PHP 5
In this second part of a four-part series, I rebuild the example application developed in the previous tutorial. As you'll recall, it used a protected constructor to prevent the instantiation of the base array iterator class. In this case, a better result will be achieved by declaring the iterator abstract; still, the example demonstrates a simple utilization of a restrictive constructor in a... The Reflection API: Working with Reflected Methods
This third part of a seven-part series explores the methods of the PHP Reflection API. You will learn how to take advantage of their functionality to retrieve useful information about the methods defined by a reflected class. - One of today's most powerful approaches for retrieving information about the internal structure of classes and interfaces in PHP 5 is via the language's native... Using Restrictive Constructors in PHP 5
What exactly is a restrictive constructor, and why would you want to use one? If you're a PHP programmer who uses such design patterns as Singleton and Factory, this series of articles on restrictive constructors will give you another tool to use in your applications. - As you'll probably know, with the release of PHP 5 quite some time ago, the language was provided with the ability to... |
Friend Links
Sponsors
Statistics
|
