![]() PHP Advanced PHP Date and Time PHP Include PHP File Handling PHP File Open/Read PHP File Create/Write PHP File Upload PHP Cookies PHP Sessions PHP Filters PHP Filters Advanced PHP Callback Functions PHP JSON PHP Exceptions PHP Forms PHP Form Handling PHP Form Validation PHP Form Required PHP Form URL/E-mail PHP Form Complete Superglobals $GLOBALS $_SERVER $_REQUEST $_POST $_GET PHP RegEx Why is it a good idea to type hint the injected objects? Conclusion. The problem: tight coupling between classes. Appendix: Group use declarations in PHP7. Let’s Practice what we have just learned. Can more than one namespace be imported into the same file? Conclusion. How to alias a class from a namespace with a friendly name? How to call a class from the global namespace?. How to use a class that belongs to a namespace?. Let’s practice what we have just learned. In which scenarios is it preferable to use traits?. What are the disadvantages of using traits?. ![]() ![]() What are the advantages of using traits?. Is it possible for a class to use more than one trait? How is a trait different from inheritance?. When to use static properties and methods?. How to approach the static methods from within the class?. ![]() How to approach static methods and properties?. How to define methods and properties as static?. 73 73 CONTENTS Type hinting for interfaces. Why type hinting for objects may not be sufficient?. 68 68 69 70 72 72 Type hinting for interfaces. Does PHP support type hinting to basic data types? Conclusion. How to implement the polymorphism principle? Conclusion. What are the differences between abstract classes and interfaces? Conclusion. Can we implement more than one interface in the same class?. How to declare and implement an interface?. 50 50 51 51 53 54 Interfaces - the next level of abstraction. Can we have non abstract methods inside an abstract class? How to create child classes from an abstract class?. How to declare classes and methods as abstract?. How to override the parent’s properties and methods in the child class? How to prevent the child class from overriding the parent’s methods?. How can a child class have its own methods and properties?. How can a class inherit the code of another class?. 32 32 34 35 36 37 Inheritance in object oriented programming. How to write a constructor method without risking an error? Magic constants. CONTENTS Magic methods and constants unveiled. Let’s practice what we have just learned 26 26 27 27 28 30 31. 15 15 18 19 Chaining methods and properties. 1 1 2 3 4 4 How to create classes and objects?. Why bother learning object oriented PHP?. The essentials of Object Oriented PHP Learn, practice, and apply Joseph Benharosh © 2014 - 2016 Joseph Benharosh To my parents, Rachel & Zion Benharosh.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |