DevShed: Using Static Methods to Validate Data with Helpers in P...

Courtesy PHPDeveloper.org  Wed, 09/09/2009 - 07:29

DevShed finishes off their series on data validation with this eighth part - a look at using static methods to create a simple validation helper class (a rework of earlier code).

The methods of the [previously created] helper were always called in the object scope, implying that there was a previous instantiation of the class.

In this particular case, this process is completely unnecessary, aside from encouraging a bad programming habit.

Therefore, in this last tutorial of...


 

More related items

DevShed: Working Out of the Object Context to Build...
New on DevShed there's the latest part of a series of tutorials they've written up (fifth of eight) about building automatic loading functionality into your applications. This time they...

DevShed: PHP Closures as View Helpers: Lazy-Loading...
In the second part of their look at using closures in PHP as view helpers, DevShed improves upon their original code by adding some additional classes and using them in the closures. The...

Recover Your Deleted Files In Linux using Scalpel...
Linuxaria: Have you accidentally deleted an important file because you are in a habit of using "Shift+Del" rather than delete only?? Well don't panic. There is a utility named as "scalpel"...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com