Jump to content

MVC Modal Class


Liquid Fire

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/80319-mvc-modal-class/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.