Home Page Icon
Home Page
Table of Contents for
H
Close
H
by Peter Lavin
Object-Oriented PHP
OBJECT-ORIENTED PHP.
ACKNOWLEDGMENTS
INTRODUCTION
What Does This Book Have to Offer?
Who Should Read This Book?
Requirements
Overview of Contents
Companion Website
Resources
WHAT A TANGLED WEB WE WEAVE
Do We Really Need Objects?
The PHP Culture
BASICS OF OBJECT-ORIENTED PROGRAMMING
Class
Objects Need Access Modifiers
Object Reuse and Inheritance
Where to Go from Here
OBJECT-ORIENTED FEATURES NEW TO PHP 5
Access Modifiers
Built-in Classes
Backward Compatibility
Where to Go from Here
SHOW A LITTLE CLASS
Design
Not the Da Vinci Code
Creating an Instance
What Have You Accomplished?
But Will It Fly?
MOD UR CLASS
Upgrading to PHP 5
Modifying Your Class
Summary of Changes
THE THUMBNAILIMAGE CLASS
What Does a Designer Do?
The ThumbnailImage Class
Displaying a Thumbnail
Putting It All Together
Where to Go from Here
BUILDING THE PAGENAVIGATOR CLASS
How Will the Navigator Behave
What Will It Look Like?
The Code
The getNavigator Method
Where to Go from Here
USING THE PAGENAVIGATOR CLASS
DirectoryItems Change
CSS and Reusability
Paging with Class
Where to Go from Here
DATABASE CLASSES
Using What You Know
One Lump or Two?
The MySQLConnect Class
The MySQLResultSet Class
Using the Page Navigator
Where to Go After the Navigator
IMPROVEMENT THROUGH INHERITANCE
The Standard PHP Library
Extending a Class Through Inheritance
Replacing Errors with Exceptions
The MySQLException Class
Changes to the MySQLConnect Class
Catching Exceptions
Implementing an Interface
Where to Go from Here
ADVANCED OBJECT-ORIENTED PROGRAMMING CONCEPTS
Abstract Classes
Polymorphism
Static Classes
Design Patterns
Where to Go from Here
Keeping It Fresh
SimpleXML
Site-Specific Search
Complex Tasks Made Easy
Would You Want to Do It Procedurally?
MORE MAGIC METHODS
__get and __set
__isset and __unset
__call
__autoload
__sleep and __wakeup
__clone
A Note About Overloading
Creating Documentation Using the Reflection Classes
What Are the Reflection Classes?
The Reflection Group of Classes
What Format Do You Want?
The Documenter Class
Using the Documenter Class
Reflecting
EXTENDING SQLITE
Brief Overview
Directory Structure
How It's Done
Getting Started
Creating a Table
Views
Triggers
PHP Implementation of SQLite
Extending SQLiteDatabase
Override the Query Methods
Utility Methods
User-Defined Functions
Uses and Limitations of SQLite
Using PDO
Pros and Cons
Converting the SQLite Application
Additional Capabilities of PDO
Assessment
SETTING UP PHP 5
php.ini Settings
Conversion Table: PHP 4 AND PHP 5
GLOSSARY
A
B
C
D
E
F
G
H
I
J
M
N
P
Q
R
S
T
W
X
Z
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
G
Next
Next Chapter
I
H
HTML (HyperText Markup Language)
A simple markup language derived from SGML and used to create web pages
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