Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Framework » metadata vs. business logic
metadata vs. business logic [message #76] Thu, 15 June 2006 17:27 Go to next message
lauxa is currently offline  lauxa
Messages: 2
Registered: June 2006
Junior Member
I am just getting started in php application development and I really like how you have set up your application framework. I especially like that your data array handles one or multiple records and without breaking it into $<field> variables as some reccommend.

I want to use a perl script to generate my table classes from the create sql script. I am considering making my meta-data definitions separate from any business logic and then using multiple inheritence to include them in the $<table> class so that if my table structures change I can regen the meta-data definitions with minimum impact. I just wanted to get your opinion on this and why you did not design it this way. Maybe changing table specifications is an issue that only affects inexperienced programmers like me? Thanks.
Re: metadata vs. business logic [message #77 is a reply to message #76] Fri, 16 June 2006 05:12 Go to previous message
AJM is currently offline  AJM
Messages: 2367
Registered: April 2006
Location: Surrey, UK
Senior Member
It is a good idea to keep table definitions separate from business logic so that you can incorporate any changes in your database structure very easily, but the Radicore framework already achieves this. When you use the dictionary export facility (see http://www.tonymarston.net/php-mysql/menuguide/dict_table(up d4)export.html) it can create two files - the table class for business logic and a separate structure file. It does not overwrite the class file if it already exists, thus preserving any business logic which you may have defined. Only the structure file is overwritten.

[Updated on: Fri, 17 November 2017 04:48]

Report message to a moderator

Previous Topic: radicore examples
Next Topic: OWASP standards vs. Radicore Framework
Goto Forum:
  


Current Time: Thu Nov 21 12:47:58 EST 2024

Total time taken to generate the page: 0.09506 seconds