Programmer's Reference Guide

Zend Framework

2006-03-08


Table of Contents

1. Zend
1.1. Introduction
1.2. Zend::loadFile()
1.3. Zend::loadClass()
1.4. Zend::loadInterface()
1.5. Zend::isReadable()
1.6. Zend::dump()
1.7. Zend::register()
1.8. Zend::registry()
2. Zend_Controller
2.1. Overview
2.1.1. Introduction
2.1.2. Route Process
2.1.3. Dispatch Token
2.1.4. Dispatch Process
2.2. Getting Started
2.2.1. Introduction
2.2.2. Server Configuration
2.2.3. Bootstrap File
2.2.4. Directory Structure
2.2.5. IndexController
2.3. Subclassing
2.3.1. Introduction
2.3.2. Conventions
2.3.3. Router Interface
2.3.4. Dispatcher Interface
2.4. Plugins
2.4.1. Introduction
3. Zend_Db
3.1. Zend_Db_Adapter
3.1.1. Introduction
3.1.2. Quoting Against SQL Injection
3.1.3. Direct Queries
3.1.4. Transactions
3.1.5. Inserting Rows
3.1.6. Updating Rows
3.1.7. Deleting Rows
3.1.8. Fetching Rows
3.2. Zend_Db_Select
3.2.1. Introduction
3.2.2. Columns FROM a Table
3.2.3. Columns from JOINed Tables
3.2.4. WHERE Conditions
3.2.5. GROUP BY Clause
3.2.6. HAVING Conditions
3.2.7. ORDER BY Clause
3.2.8. LIMIT By Count and Offset
3.2.9. LIMIT By Page And Count
3.3. Zend_Db_Table
3.3.1. Introduction
3.3.2. Getting Started
3.3.3. Table Name and Primary Key
3.3.4. Inserting Rows
3.3.5. Updating Rows
3.3.6. Deleting Rows
3.3.7. Finding Rows by Primary Key
3.3.8. Fetching One Row
3.3.9. Fetching Multiple Rows
3.3.10. Adding Domain Logic
3.4. Zend_Db_Table_Row
3.4.1. Introduction
3.4.2. Fetching a Row
3.4.3. Modifying Values
3.5. Zend_Db_Table_Rowset
3.5.1. Introduction
3.5.2. Fetching a Rowset
3.5.3. Iterating Through the Rowset
4. Zend_Feed
4.1. Introduction
4.2. Importing Feeds with Zend_Feed
4.3. Retrieving Feeds from Web Pages
4.4. Consuming an RSS Feed
4.5. Consuming an Atom Feed
4.6. Consuming a Single Atom Entry
4.7. Modifying Feed and Entry structures
4.8. Custom Feed and Entry Classes
5. Zend_Filter
5.1. Introduction
5.2. Use Cases
6. Zend_HttpClient
6.1. Introduction
6.2. Basic GET Requests with Specified HTTP Headers
6.3. Requesting Multiple Domains
6.4. Changing the HTTP Timeout
6.5. Setting HTTP Headers Dynamically
6.6. Making HTTP POST, PUT, and DELETE Requests
6.7. Zend_HttpClient_Response
6.7.1. Introduction
7. Zend_InputFilter
7.1. Introduction
7.1.1. Whitelist Filtering
7.1.2. Blind Filtering
7.1.3. Blacklist Filtering
7.2. Theory of Operation
7.3. Use Cases
8. Zend_Json
8.1. Introduction
8.2. Basic Usage
8.3. JSON Objects
9. Zend_Log
9.1. Introduction
9.2. Logging to a Single Log
9.3. Log Levels
9.4. Advanced Logging: Multiple Loggers
10. Zend_Mail
10.1. Introduction
10.2. Sending via SMTP
10.3. Sending Multiple Mails per SMTP Connection
10.4. Using Different Transports
10.5. HTML E-Mail
10.6. Attachments
10.7. Adding Recipients
10.8. Controlling the MIME Boundary
10.9. Additional Headers
10.10. Character Sets
10.11. Encoding
10.12. SMTP Authentication
11. Zend_Mime
11.1. Introduction
12. Zend_Pdf
12.1. Introduction.
12.2. Creating and loading PDF documents.
12.3. Save changes to the PDF document.
12.4. Document pages.
12.5. Drawing.
12.5.1. Geometry.
12.5.2. Colors.
12.5.3. Shape Drawing.
12.5.4. Text Drawing.
12.5.5. Using fonts.
12.5.6. Image Drawing.
12.5.7. Line drawing style.
12.5.8. Fill style.
12.5.9. Rotations.
12.5.10. Save/restore graphics state.
12.5.11. Clipping draw area.
12.5.12. Styles.
12.6. Zend_Pdf module usage example.
13. Zend_Search
13.1. Introduction
13.2. File Formats
13.3. Document Object
13.4. Creating and Updating the Index
13.5. Creating an Index with LuceneIndexCreation.jar
13.6. Index Directory
13.7. Searching the Index
13.8. Term Queries
13.9. Multi Term Queries
13.10. Phrase Queries
13.11. Scoring API
13.12. Storage API
14. Zend_Service
14.1. Introduction
14.2. Zend_Service_Rest
14.2.1. Introduction
14.3. Zend_Service_Amazon
14.3.1. Introduction
14.3.2. Country Codes
14.3.3. Looking up a Specific Amazon Item by ASIN
14.3.4. Performing Amazon Item Searches
14.3.5. Using the Alternative Query API
14.3.6. Zend_Service_Amazon Classes
14.4. Zend_Service_Flickr
14.4.1. Introduction to Searching Flickr
14.4.2. Finding Flickr Users
14.4.3. Retrieving Flickr Image Details
14.4.4. Zend_Service_Flickr Classes
14.5. Zend_Service_Yahoo
14.5.1. Introduction
14.5.2. Searching the Web with Yahoo!
14.5.3. Finding Images with Yahoo!
14.5.4. Finding Local Businesses and Services with Yahoo!
14.5.5. Searching Yahoo! News
14.5.6. Zend_Service_Yahoo Classes
15. Zend_View
15.1. Introduction
15.1.1. Controller Script
15.1.2. View Script
15.2. Controller Scripts
15.2.1. Assigning Variables
15.2.2. Rendering a View Script
15.2.3. View Script Paths
15.3. View Scripts
15.3.1. Escaping Output
15.3.2. Template Systems
15.4. View Helpers
15.4.1. Initial Helpers
15.4.2. Helper Paths
15.4.3. Writing Custom Helpers
A. Zend Framework PHP Coding Standard
A.1. Overview
A.1.1. Scope
A.1.2. Goals
A.2. PHP File Formatting
A.2.1. General
A.2.2. Indentation
A.2.3. Maximum Line Length
A.2.4. Line Termination
A.3. Naming Conventions
A.3.1. Classes
A.3.2. Interfaces
A.3.3. Filenames
A.3.4. Functions and Methods
A.3.5. Variables
A.3.6. Constants
A.4. Coding Style
A.4.1. PHP Code Demarcation
A.4.2. Strings
A.4.3. Arrays
A.4.4. Classes
A.4.5. Functions and Methods
A.4.6. Control Statements
A.4.7. Inline Documentation
B. Copyright Information
Index

List of Tables

14.1. Zend_Service_Amazon_Item Properties
14.2. Zend_Service_Amazon_Image Properties
14.3. Zend_Service_Amazon_OfferSet Properties
14.4. Zend_Service_Amazon_Offer Properties
14.5. Zend_Service_Amazon_SimilarProduct Properties
14.6. Zend_Service_Amazon_Accessories Properties
14.7. Zend_Service_Amazon_CustomerReview Properties
14.8. Zend_Service_Amazon_EditorialReview Properties
14.9. Zend_Service_Amazon_Listmania Properties
14.10. Zend_Service_Flickr_ResultSet Properties
14.11. Zend_Service_Flickr_Result Properties
14.12. Zend_Service_Flickr_Image Properties
14.13. Zend_Service_Yahoo_ResultSet
14.14. Zend_Service_Yahoo_LocalResultSet Properties
14.15. Zend_Service_Yahoo_Result Properties
14.16. Zend_Service_Yahoo_WebResult Properties
14.17. Zend_Service_Yahoo_ImageResult Properties
14.18. Zend_Service_Yahoo_LocalResult Properties
14.19. Zend_Service_Yahoo_NewsResult Properties
14.20. Zend_Service_Yahoo_Image Properties

List of Examples

4.1. Putting Zend_Feed to Work on RSS Feed Data
4.2. Basic Use of an Atom Feed
4.3. Reading a Single-Entry Atom Feed
4.4. Using the Entry Object Directly for a Single-Entry Atom Feed
4.5. Modifying an Existing Feed Entry
4.6. Creating an Atom Entry with Elements of Custom Namespaces
4.7. Extending the Atom Entry Class with Custom Namespaces
6.1. Performing a Basic GET Request
6.2. Creating a Basic Zend_HttpClient
6.3. Sending Multiple Headers
6.4. Requesting Multiple Domains
6.5. Sending POST data with Zend_HttpClient
6.6. Working with HTTP Response Data
10.1. Simple E-Mail with Zend_Mail
10.2. Sending E-Mail via SMTP
10.3. Sending Multiple Mails per SMTP Connection
10.4. Using Different Transports
10.5. Sending HTML E-Mail
10.6. E-Mail Messages with Attachments
10.7. Changing the MIME Boundary
10.8. Adding E-Mail Message Headers
12.1. Create new or load existing PDF document.
12.2. Requesting specified revision of the PDF document.
12.3. Save PDF document.
12.4. PDF document pages management.
12.5. Create standard font.
12.6. Image drawing.
12.7. Zend_Pdf module usage demo.
14.1. A basic REST Request
14.2. Search Amazon Using the Traditional API
14.3. Search Amazon Using the Query API
14.4. Choosing an Amazon Web Service Country
14.5. Looking up a Specific Amazon Item by ASIN
14.6. Performing Amazon Item Searches
14.7. Search Amazon Using the Alternative Query API
14.8. Simple Flickr Photo Search
14.9. Finding a Flickr User by E-Mail Address
14.10. Retrieving Flickr Image Details
14.11. Searching the Web with Yahoo!
14.12. Finding Images with Yahoo!
14.13. Finding Local Businesses and Services with Yahoo!
14.14. Searching Yahoo! News