Monday, January 26, 2009

Mini-ORM (20090126)

Implemented a very basic ORM (it's missing the ability to determine the database structure at run-time - I fel't that would be too much of an overhead at this point - especially if I can't find a simple way of caching that information, it would be done once for every request.)

Implementing the staged 'add new user' or 'edit user details' in PHP, from gathering firstname, surname etc to town of birth with an Atlas validation to retrieving transits and natal images. By lunchtime I've got as far as knocking out the web service call to DBPlaceValidation.

Added automatic accessors (for reading and writing properties of records represented by the mini-ORM.) This means you can do things like $user->surname="Smith", instead of user->set("surname", "Smith").

The registration process, with the database atlas validation is all done. Tomorrow is the natal image and transit retrieve web service integration, and implementation of the user_images model (using the mini-ORM as with 'user')

No comments: