I'm pretty new to the OOP game, and need some (major) advice. I currently have an active project and I want to rewrite it in an OOP manor. The thing is, I don't know how to split it down (i.e. what classes, what functions within each class etc).
Can anybody give me a push start on this? Here's the details:
It's a PHP front-end to a Squid server, using a MySQL database for data storage. The Squid server is running as a whitelist filter, and my PHP app allows staff to log in and add sites to the whitelist. The features of it are:
::: Login (LDAP Auth)
::: Logout
EDITING FEATURES
::: Add new site (normal)
::: Add new site (hidden)
::: Delete site (normal)
::: Delete site (hidden)
::: Get a list of links for one site, and add to db
::: Add a new admin user
::: Delete an admin user
::: Add a new subject (subjects used to categorise sites for searching features)
::: Delete a subject
::: Add a new type of site (again, used to categorise sites)
::: Delete a type of site
SEARCHING FEATURES
::: Search by title
::: Search to get ONLY image sites
::: Search to get ONLY sites added today
::: Search by subject
::: Search by area
REPORTING FEATURES
::: Show access logs
::: Show activity logs
The site is up and running now, and works fine - I just to want make it OOP for my own learning and don't know where to start (i.e. as stupid as it sounds, what class do I write first and what functions should this class have).
Any help appreciated - if you need any more info let me know and I will provide it.
Many thanks,