文档介绍:cyan yelloW
MAGENTA BLACK
panTONE 123 C
Books for professionals by professionals® The EXPERT’s VOIce® in Open Source
Companion
Author of eBook Available
SAMS Teach Yourself PHP PHP Objects, Patterns, and Practice Second Edition
in 24 Hours PHP
Dear Reader,
In recent years, PHP has embraced the object-oriented revolution, both in
terms of usage patterns and language features. Still, though, most books about
object-oriented design focus on languages like Java and C++. But one of the nice
things about designing with objects is how concepts can travel among languages. In
this book, I explore object-oriented programming and design from the standpoint
of a PHP programmer.
I begin with an overview of PHP’s object-oriented features, introducing key
topics like class declaration, object instantiation, inheritance, and method
and property encapsulation. You’ll also learn about advanced topics including
and Objects, Patterns, PHP Objects,
static methods and properties, abstract classes, interfaces, exception handling,
object cloning, and more. You’ll benefit from an extensive discussion of best
practices in object-oriented design too.
The next part of this book is devoted to design patterns, a subject that naturally Practice
complements object orientation. I introduce pattern concepts and show you
how to implement several key patterns in your PHP applications, and I include Patterns, and
chapters on enterprise and database patterns.
In the last segment of this book, I introduce a number of great utilities that
help you document, manage, test, and build your PHP applications, including
Phing, PHPUnit2, PHPDocumentor, PEAR, and CVS.
I wrote PHP Objects, Patterns, and Practice to give you the kind of help I
would have liked when I first discovered object-oriented programming and Practice
design patterns, since I learned a lot of lessons the hard way, in both code
design and good project practice.