Retrieving functions from database in PHP, is it usual?
Posted: Mon Mar 28, 2011 12:36 pm
Hi, I'm new to this forum!
The reason of my post is because I've just moved to a new company and their programming mode is confusing me a lot. I'm used to OOP, and with big projects I tend to use the MVC archietcture. But the programming method in this place is quite different:
It's quite a procedural way, with few objects which use to be huge (lots of properties and methods) and act as the engine. This is not what I most like but I understand it so far. What I don't understand is the reason why many functions are mapped within the database, stored in tables together with the parameters they will accept. Is this a common way to program PHP? They say it's an efficient way to keep track of further changes to those functions and their parameters (they also come from programming on Visual Basic so maybe this is a common practice with this language). When one of these functions must be called, it's retrieved from the DB and called by using call_user_func(). The thing is I don't see the point, and I'd like to know opinions out there about this. And if possible, some tutorial which covers this type of programming.
Any help would be appreciated.
The reason of my post is because I've just moved to a new company and their programming mode is confusing me a lot. I'm used to OOP, and with big projects I tend to use the MVC archietcture. But the programming method in this place is quite different:
It's quite a procedural way, with few objects which use to be huge (lots of properties and methods) and act as the engine. This is not what I most like but I understand it so far. What I don't understand is the reason why many functions are mapped within the database, stored in tables together with the parameters they will accept. Is this a common way to program PHP? They say it's an efficient way to keep track of further changes to those functions and their parameters (they also come from programming on Visual Basic so maybe this is a common practice with this language). When one of these functions must be called, it's retrieved from the DB and called by using call_user_func(). The thing is I don't see the point, and I'd like to know opinions out there about this. And if possible, some tutorial which covers this type of programming.
Any help would be appreciated.