Home Page Icon
Home Page
Table of Contents for
Title Page
Close
Title Page
by Matt Zandstra
PHP Objects, Patterns, and Practice, Fourth Edition
Title Page
Dedication
Contents at a Glance
Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
CHAPTER 1: PHP: Design and Management
The Problem
PHP and Other Languages
About This Book
Summary
CHAPTER 2: Objects
The Accidental Success of PHP Objects
Advocacy and Agnosticism: The Object Debate
Summary
CHAPTER 3: Object Basics
Classes and Objects
Setting Properties in a Class
Working with Methods
Arguments and Types
Inheritance
Summary
CHAPTER 4: Advanced Features
Static Methods and Properties
Constant Properties
Abstract Classes
Interfaces
Traits
Late Static Bindings: The static Keyword
Handling Errors
Final Classes and Methods
Working with Interceptors
Defining Destructor Methods
Copying Objects with __clone( )
Defining String Values for Your Objects
Callbacks, Anonymous Functions and Closures
Summary
CHAPTER 5: Object Tools
PHP and Packages
The Class and Object Functions
The Reflection API
Summary
CHAPTER 6: Objects and Design
Defining Code Design
Object-Oriented and Procedural Programming
Choosing Your Classes
Polymorphism
Encapsulation
Forget How to Do It
Four Signposts
The UML
Summary
CHAPTER 7: What Are Design Patterns? Why Use Them?
What Are Design Patterns?
A Design Pattern Overview
The Gang of Four Format
Why Use Design Patterns?
PHP and Design Patterns
Summary
CHAPTER 8: Some Pattern Principles
The Pattern Revelation
Composition and Inheritance
Decoupling
Code to an Interface, Not to an Implementation
The Concept That Varies
Patternitis
The Patterns
Summary
CHAPTER 9: Generating Objects
Problems and Solutions in Generating Objects
The Singleton Pattern
Factory Method Pattern
Abstract Factory Pattern
Prototype
But That’s Cheating!
Summary
CHAPTER 10: Patterns for Flexible Object Programming
Structuring Classes to Allow Flexible Objects
The Composite Pattern
The Decorator Pattern
The Facade Pattern
Summary
CHAPTER 11: Performing and Representing Tasks
The Interpreter Pattern
The Strategy Pattern
The Observer Pattern
The Visitor Pattern
The Command Pattern
Summary
CHAPTER 12: Enterprise Patterns
Architecture Overview
Cheating Before We Start
The Presentation Layer
The Business Logic Layer
Summary
CHAPTER 13: Database Patterns
The Data Layer
Data Mapper
Identity Map
Unit of Work
Domain Object Factory
The Identity Object
The Selection Factory and Update Factory Patterns
What’s Left of Data Mapper Now?
Summary
CHAPTER 14: Good (and Bad) Practice
Beyond Code
Borrowing a Wheel
Playing Nice
Giving Your Code Wings
Documentation
Testing
Continuous Integration
Summary
CHAPTER 15: An Introduction to PEAR and Pyrus
What Is PEAR?
Phar Out with Pyrus
Installing a Package
Using a PEAR Package
Creating Your Own PEAR Package
Summary
CHAPTER 16: Generating Documentation with phpDocumentor
Why Document?
Installation
Generating Documentation
DocBlock Comments
Documenting Classes
File-Level Documentation
Documenting Properties
Documenting Methods
Namespace support
Creating Links in Documentation
Summary
CHAPTER 17: Version Control with Git
Why Use Version Control?
Getting Git
Configuring a Git Server
Beginning a Project
Updating and Committing
Adding and Removing Files and Directories
Tagging a Release
Branching a Project
Summary
CHAPTER 18: Testing with PHPUnit
Functional Tests and Unit Tests
Testing by Hand
Introducing PHPUnit
Writing Web Tests
A Note of Caution
Summary
CHAPTER 19: Automated Build with Phing
What Is Phing?
Getting and Installing Phing
Composing the Build Document
Summary
CHAPTER 20: Continuous Integration
What Is Continuous Integration?
Jenkins
Summary
CHAPTER 21: Objects, Patterns, Practice
Objects
Patterns
Practice
Summary
APPENDIX A: Bibliography
Books
Articles
Sites
APPENDIX B: A Simple Parser
The Scanner
The Parser
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
cover
Next
Next Chapter
Copyright
PHP Objects, Patterns,
and Practice
Fourth Edition
Matt Zandstra
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset