Muutke küpsiste eelistusi

E-raamat: PHP 5 Objects, Patterns, and Practice

  • Formaat: PDF+DRM
  • Ilmumisaeg: 01-Mar-2007
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781430204039
  • Formaat - PDF+DRM
  • Hind: 34,57 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: PDF+DRM
  • Ilmumisaeg: 01-Mar-2007
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781430204039

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

PHP 5's object-oriented enhancements are among the most significant improvements in the 10+ year history of the language. This book introduces you to those new features and the many opportunities they provide, as well as a number of tools that will help you maximize development efforts. The book begins with a broad overview of PHP 5'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 static methods and properties, abstract classes, interfaces, exception handling, object cloning, and more. You'll also benefit from an extensive discussion regarding object-oriented design best practices. The next part of the book is devoted to a topic that is often a natural extension of any object-oriented introduction: design patterns. PHP 5 is particularly well-suited to the deployment of these solutions for commonly occurring programming problems. The author will introduce pattern concepts and show you how to implement several key patterns in your PHP applications.The last segment introduces a number of great utilities that help you document, manage, test, and build your PHP applications, including Phing, PHPUnit2, phpDocumentor, PEAR, and CVS.
About the Author xiii
About the Technical Reviewer xiv
Acknowledgments xv
Introduction xvii
PART ONE Introduction
CHAPTER 1 PHP: Design and Management
3(8)
The Problem
3(1)
PHP and Other Languages
4(2)
About This Book
6(2)
Summary
8(3)
PART TWO Objects
CHAPTER 2 PHP and Objects
11(4)
The Accidental Success of PHP Objects
11(3)
Advocacy and Agnosticism, the Object Debate
14(1)
Summary
14(1)
CHAPTER 3 Object Basics
15(28)
Classes and Objects
15(1)
Setting Properties in a Class
16(3)
Working with Methods
19(3)
Arguments and Types
22(5)
Inheritance
27(14)
Summary
41(2)
CHAPTER 4 Advanced Features
43(26)
Static Methods and Properties
43(4)
Constant Properties
47(1)
Abstract Classes
47(2)
Interfaces
49(2)
Handling Errors
51(7)
Final Classes and Methods
58(1)
Working with Interceptors
59(4)
Defining Destructor Methods
63(1)
Copying Objects with _clone()
64(2)
Defining String Values for Your Objects
66(1)
Summary
67(2)
CHAPTER 5 Object Tools
69(24)
PHP and Packages
69(4)
The Class and Object Functions
73(6)
The Reflection API
79(12)
Summary
91(2)
CHAPTER 6 Objects and Design
93(24)
Defining Code Design
93(1)
Object-Oriented and Procedural Programming
94(5)
Choosing Your Classes
99(1)
Polymorphism
100(1)
Encapsulation
101(1)
Forget How to Do It
102(1)
Four Signposts
103(1)
The UML
104(9)
Summary
113(4)
PART THREE Patterns
CHAPTER 7 What Are Design Patterns? Why Use Them?
117(8)
What Are Design Patterns?
117(2)
A Design Pattern Overview
119(1)
The "Gang of Four" Format
120(1)
Why Use Design Patterns?
121(2)
PHP and Design Patterns
123(1)
Summary
123(2)
CHAPTER 8 Some Pattern Principles
125(12)
The Pattern Revelation
125(1)
Composition and Inheritance
126(6)
Decoupling
132(2)
Code to an Interface Not an Implementation
134(1)
The Concept That Varies
135(1)
Patternitis
135(1)
The Patterns
136(1)
Summary
136(1)
CHAPTER 9 Generating Objects
137(26)
Problems and Solutions in Generating Objects
137(4)
The Singleton Pattern
141(4)
Factory Method Pattern
145(5)
Abstract Factory
150(10)
But That's Cheating!
160(1)
Summary
161(2)
CHAPTER 10 Designing for Object Relations
163(22)
Structuring Classes to Allow Flexible Objects
163(1)
The Composite Pattern
163(11)
The Decorator Pattern
174(6)
The Facade Pattern
180(4)
Summary
184(1)
CHAPTER 11 Performing and Representing Tasks
185(34)
The Interpreter Pattern
185(2)
Implementation
187(8)
The Strategy Pattern
195(5)
The Observer Pattern
200(7)
The Visitor Pattern
207(6)
The Command Pattern
213(5)
Summary
218(1)
CHAPTER 12 Enterprise Patterns
219(74)
Introduction
219(3)
Cheating Before We Start
222(9)
The Presentation Layer
231(28)
The Business Logic Layer
259(8)
The Data Layer
267(21)
Summary
288(5)
PART FOUR Practice
CHAPTER 13 Good (and Bad) Practice
293(14)
Beyond Code
293(1)
Borrowing a Wheel
294(1)
Playing Nice
295(1)
Giving Your Code Wings
296(1)
Documentation
297(1)
Testing
298(8)
Summary
306(1)
CHAPTER 14 An Introduction to PEAR
307(16)
What Is PEAR?
307(1)
Installing a Package with PEAR
308(1)
Using a PEAR Package
309(3)
Working with the PEAR Installer
312(9)
Summary
321(2)
CHAPTER 15 Generating Documentation with phpDocumentor
323(16)
Why Document?
323(1)
Installation
324(1)
Generating Documentation
325(2)
DocBlock Comments
327(1)
Documenting Classes
328(2)
File-Level Documentation
330(1)
Documenting Properties
330(2)
Documenting Methods
332(2)
Creating Links in Documentation
334(2)
Summary
336(3)
CHAPTER 16 Version Control with CVS
339(20)
Why Use Version Control?
339(1)
Getting CVS
340(1)
Configuring a CVS Repository
341(2)
Beginning a Project
343(2)
Updating and Committing
345(4)
Adding and Removing Files and Directories
349(4)
Tagging and Exporting a Release
353(2)
Branching a Project
355(3)
Summary
358(1)
CHAPTER 17 Automated Build with Phing
359(24)
What Is Phing?
359(1)
Getting and Installing Phing
360(1)
build.xml: The Build Document
361(17)
Summary
378(5)
PART FIVE Conclusion
CHAPTER 18 Objects, Patterns, Practice
383(12)
Objects
383(3)
Patterns
386(3)
Practice
389(2)
Summary
391(4)
PART SIX Appendixes
APPENDIX A Bibliography
395(4)
Books
395(1)
Articles
396(1)
Sites
396(3)
APPENDIX B A Simple Parser
399(18)
The Scanner
399(5)
The Parser
404(13)
INDEX 417