Object Oriented Programming with PHP - 1 day
One day course on Object oriented programming with PHP5
Pre-Requisites:
- Completion of Learning to Program or PHP Language Tour or equivalent experience
- Completion of Web Applications in PHP or PHP for Web Developers or equivalent experience
- Basic HTML knowledge (including form tags)
Content Outline
- Object Oriented programming - the theory (Whole day course only)
- What objects are?
- How do you choose what should be an object?
- Encapsulation / Information Hiding / Coupling and Cohesion
- OO Design (Whole day course only)
- Objects in PHP4
- Objects in PHP5 (exceptions, inheritance, abstract classes, interfaces, SPL)
- Common design patterns in PHP (MVC, Strategy, Singleton, Command, Observer)
- 1 hour exercise migrating "legacy" example into an MVC style application using e.g Smarty or the Zend Framework
- 2 hour exercise building a shopping cart using various design patterns and OO principals
