Course
Skills Expanded
Object-oriented PHP: Classical Inheritance Model
Training in the PHP object-oriented inheritance model.
What you'll learn
This course focuses training on the class, trait, interface constructs, and object use cases both conceptually, and with application use cases. The student will learn techniques for code reuse and organization, how to build relationships of like functionality and leverage the power of PHP's object-oriented model.
Table of contents
Inheritance
45mins
- Module Introduction 3m
- Objects and Code Duplication 3m
- The Vertical Inheritance Model 5m
- The Superclass 4m
- Subclasses and Visibilities 4m
- Chaining Methods 4m
- Applying Inheritance to the Form Application Part 1 3m
- Applying Inheritance to the Form Application Part 2 4m
- Applying Inheritance to the Form Application Part 3 4m
- Walking Through the Form Subclasses 5m
- Refactoring Form Input Classes with Inheritance 4m
- Using an Autoloader in the Form Application 3m
Method Overriding and Overloading
31mins
- Module Introduction 1m
- Method Overrides 5m
- Private and Final Visibilities 3m
- Method Overrides in the Form Generator Application 3m
- Method Overloading 4m
- Overloading Using Magic __get() and __set() Methods 5m
- More Magic with __isset() and __unset() Methods 3m
- More Magic with __sleep() and __wakeup() Methods 4m
- More Magic with __invoke() and __clone() Methods 5m
PHP Traits and Class Relationship
20mins
Class Abstraction, Interface, and Type Hints
32mins