Skip to content
danwguy edited this page Dec 18, 2013 · 8 revisions

Welcome to the OOF wiki!
Please keep in mind that this project is not complete, it is at best maybe an alpha release, but I am not even comfortable saying that. So, read up, hang tight, check back often because once this is full release... it will change the way you see programming forever! ###Links

##What is OOF?
OOF is PHP framework that is lightweight, powerful, and easy to use. There are tons of other frameworks out there so why try OOF? Because OOF is specifically built to handle extremely complex relationships with the greatest of ease, and designed to handle all the heavy lifting for you. On the other had if you like to have complete control over your applications and require a massive amount of customization and the ability to easily implement your own logic without a lot of coding, OOF is definitely the framework for you. Built with hooks in every possible place you could need them, while at the same time not forcing you to use them if not needed. Check it out, go through some of the documentation and see how easy and powerful it really is.

##Hooks You want hooks, we got em. In addition to the standard hooks that most frameworks have, the pre_system, cache_override, pre_controller, post_controller_construct, post_controller, display_override, and post_system OOF has created many more so you can control your application and your logic your way. A quick rundown of some of the hooks available to help you implement your own logic would show the following

  • before_construction()
    • A hook designed to allow you to run custom logic on objects at the start of __construct() before the OOF logic happens or anything else. Extremely useful, and kinda necessary, if you use the ARDO relation management system.
  • after_construction()
    • This is run after the object is constructed, either from the database, from the array of info passed to it, or the empty object returned from a blank new call
  • before_creation()
    • This is run before the object is created when using the create() method. The create method is a magic static method that you pass an array of information to and it will construct the object, as well as save the information to the database.
  • after_creation()
    • Run after the object is created and saved to the database when using the create() magic static method
  • before_retrieval()
    • Run at the very start of the retrieve method that gets the information from the database when constructing an object.
  • after_retrieval()
    • Run after the object is retrieved from the database and built.
  • before_saving()
    • Run ar the start of save() whether called directly or with the static create method.
  • after_saving()
    • Run after the object is saved to the database but before return of the method
  • before_deletion()
    • Run at the beginning of the delete method. There are special methods that will not delete the information from the database, but rather mark it for deletion, this method is run at that time as well.
  • after_deletion()
    • Run at the end of the delete method and all methods that mark for deletion, but before the function returns.
Not bad eh?

Well, that is the framework in a nutshell. You should probably take a look at the documentation to get a better idea as to what is going on and how to get all setup. I hope you enjoy, feel free to shoot me a message if you need anything. I can be reached through git @danwugy , or direct email danwguy. Thank you.
Clone this wiki locally