Liquid Fire Posted December 5, 2007 Share Posted December 5, 2007 I have built a modal class for my MVC framework which has the following features: merge: so I can take data from one object and replace it without another object if the merging object has that data, if not is will keep the object it is merging to set/get functions with __call to get and set data. set data members function which basically create a list off all data members based of the database data map array you set up for each model save method which will automatically know whether or not you need to insert into the database or just update the database. load_by_primary_key function which loads a record by the primary key. what other function do you think might be useful for a model class to have Quote Link to comment https://forums.phpfreaks.com/topic/80319-mvc-modal-class/ Share on other sites More sharing options...
roopurt18 Posted December 10, 2007 Share Posted December 10, 2007 Is there any reason you didn't just use __set & __get instead of __call for those types of methods. I can think of one, but I'm just curious as to the actual reason. Quote Link to comment https://forums.phpfreaks.com/topic/80319-mvc-modal-class/#findComment-411200 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.