I, as the name says, is new to OOP, but I taught in PHP myself. We have a system based on procedural PHP, which is now becoming a bit complicated due to its size. So I'm learning re-writing in PHP OOP to make it easier to maintain.
I am making class lists at the moment. Our system is designed to manage driving schools, so we have a school, instructors, students and the lessons that I see will be objects and, therefore, classes. My question comes from the fact that we have one school, but many instructors, students and lessons, so when creating a program, we will need to display lists of these objects. Therefore, a list of any of them will be considered a class in its own right, or when it comes to programming, it will be necessary to create an instance for each instructor, student and lesson. Or I missed something fundamental in the design of the OOP system.
As I said, just when developing OOP, please be careful with me.
Many thanks colin
Thanks everyone for the comments. The more I think about it, the more I realize, at least for me. that a list of something in my system is an object. I believe that each element in the list will be a form, as it is now, so any selection of the element will lead to the launch of a new script that will create a new instance of the student, instructor, etc. Together with the execution of methods for a new instance.
object oop php class
Colin martin
source share