A cousin, of sorts, to DB_Table?

It seems I am not alone in thinking it is wise to embed database table column information in the PHP class that will interface with that table. Harry Fuecks, in his blog entry titled A Development Infrastructure for PHP, points to work by Tony Marston.

Check out Tony’s notes about his business class field properties and compare with the DB_Table schema setup documentation. They are obviously very similar, at least in example and documentation. The both do automated validation as well, and have “hints” for form-building embedded in the class.

Nice to know someone is on the same path as me (although Tony is obviously **much** further ahead :-).

Are you stuck with a legacy PHP application? You should buy my book because it gives you a step-by-step guide to improving your codebase, all while keeping it running the whole time.
Share This!Share on Google+Share on FacebookTweet about this on TwitterShare on RedditShare on LinkedIn

One thought on “A cousin, of sorts, to DB_Table?

  1. well querytool does too .. but you know my opinion on the novelty of db_table in pear 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *