As some of you know, I’ve been working for a while on implementing type hinting for method return values. I’m pleased to say that the implementation is done. The following types are allowed: Array Class names Parameter type hints allow callable types, but until a keyword is assigned to “callable” (RFC), it’s not possible to [...]
Read More ...Category: PHP
One of the features of the PHP Fever Framework is ActiveRecord access to your database. This is meant to be a database access tool for DB models and contains many of the ActiveRecord functions and more.
Read More ...The chain-of-command pattern, like most others, assists with maintaining a loose coupling within your classes. By providing a series of classes that implement the ICommand interface and do a specific bit of processing, the developer doesn’t have to care which method to execute.
Read More ...The observer pattern provides another way to maintain loose coupling within your code. It’s an extremely simple pattern and is implemented similarly across languages. There are two parts: the observer and the observable object. Let’s address them both starting with the observer.
Read More ...The iterator pattern is one of the most useful, yet unused patterns defined. It provides a way for class users to count and iterate over a set of objects related to the class. This is very useful in MVC (Model-View-Controller) models as they handle data and the logic that pertains to it.
Read More ...