Object Orientation with PHP5
Duration
One day
Description
A one day workshop for PHP programmers without Object Orientation experience, introducing them to the concepts of OO and the PHP5 OO implementation.Pre-Requisites
Some PHP experience required.
Basic Overview:
The course provides an overview of object orientation in PHP4, and then delves into the new features and functionality introduced in PHP5. Mention of PHP4 is only made in-case the programmer encounters legacy environments/applications
It then moves on to cover various Object Oriented aspects (What is an Object and syntax?) to inheritance (multiple vs single) and then to interfaces and abstract classes
- Object Oriented programming - the theory
- What objects are
- How do you choose what should be an object?
- Encapsulation / Information Hiding / Coupling and Cohesion
- OO Design
- Quick overview of Objects in PHP4
- Objects in PHP5 (syntax, exceptions, single inheritance, abstract classes, interfaces)
- Advanced PHP5 specific functionality (magic methods like __get, __set, __call) and pass-by-reference/cloning)
- SPL - The Standard PHP Library - overview of functionality and features
- Common design patterns in PHP
- Model / View / Controller (MVC),
- Strategy,
- Decorator,
- 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
Please contact us for more information or use our information request form.