Guía de Referencia del Programador

Framework Zend

2006-07-11


Table of Contents

1. Zend
1.1. Introducción
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. Zend_Filter
5.1.1. Introduction
5.1.2. Use Cases
5.2. Zend_Filter_Input
5.2.1. Introduction
5.2.2. Theory of Operation
5.2.3. Use Cases
6. Zend_Http
6.1. Zend_Http_Client
6.1.1. Introduction
6.1.2. Basic GET Requests with Specified HTTP Headers
6.1.3. Requesting Multiple Domains
6.1.4. Changing the HTTP Timeout
6.1.5. Setting HTTP Headers Dynamically
6.1.6. Making HTTP POST, PUT, and DELETE Requests
6.2. Zend_Http_Response
6.2.1. Introduction
7. Zend_Json
7.1. Introduction
7.2. Basic Usage
7.3. JSON Objects
8. Zend_Log
8.1. Introduction
8.2. Logging to a Single Log
8.3. Log Levels
8.4. Advanced Logging: Multiple Loggers
9. Zend_Mail
9.1. Introduction
9.2. Sending via SMTP
9.3. Sending Multiple Mails per SMTP Connection
9.4. Using Different Transports
9.5. HTML E-Mail
9.6. Attachments
9.7. Adding Recipients
9.8. Controlling the MIME Boundary
9.9. Additional Headers
9.10. Character Sets
9.11. Encoding
9.12. SMTP Authentication
10. Zend_Mime
10.1. Introduction
11. Zend_Pdf
11.1. Introduction.
11.2. Creating and loading PDF documents.
11.3. Save changes to the PDF document.
11.4. Document pages.
11.5. Drawing.
11.5.1. Geometry.
11.5.2. Colors.
11.5.3. Shape Drawing.
11.5.4. Text Drawing.
11.5.5. Using fonts.
11.5.6. Image Drawing.
11.5.7. Line drawing style.
11.5.8. Fill style.
11.5.9. Rotations.
11.5.10. Save/restore graphics state.
11.5.11. Clipping draw area.
11.5.12. Styles.
11.6. Zend_Pdf module usage example.
12. Zend_Search
12.1. Overview
12.1.1. Introduction
12.1.2. Document and Field Objects
12.1.3. Understanding Field Types
12.2. Building Indexes
12.2.1. Creating a New Index
12.2.2. Updating Index
12.3. Searching an Index
12.3.1. Building Queries
12.3.2. Search Results
12.3.3. Results Scoring
12.4. Query Types
12.4.1. Term Query
12.4.2. Multi-Term Query
12.4.3. Phrase Query
12.5. Character set.
12.5.1. UTF-8 and single-byte character sets support.
12.6. Extensibility
12.6.1. Text Analysis
12.6.2. Scoring Algorithms
12.6.3. Storage Containers
12.7. Interoperating with Java Lucene
12.7.1. File Formats
12.7.2. Index Directory
12.7.3. Java Source Code
12.7.4. Using LuceneIndexCreation.jar
13. Zend_Service
13.1. Introduction
13.2. Zend_Service_Rest
13.2.1. Introduction
13.3. Zend_Service_Amazon
13.3.1. Introduction
13.3.2. Country Codes
13.3.3. Looking up a Specific Amazon Item by ASIN
13.3.4. Performing Amazon Item Searches
13.3.5. Using the Alternative Query API
13.3.6. Zend_Service_Amazon Classes
13.4. Zend_Service_Flickr
13.4.1. Introduction to Searching Flickr
13.4.2. Finding Flickr Users
13.4.3. Retrieving Flickr Image Details
13.4.4. Zend_Service_Flickr Classes
13.5. Zend_Service_Yahoo
13.5.1. Introduction
13.5.2. Searching the Web with Yahoo!
13.5.3. Finding Images with Yahoo!
13.5.4. Finding Local Businesses and Services with Yahoo!
13.5.5. Searching Yahoo! News
13.5.6. Zend_Service_Yahoo Classes
14. Zend_View
14.1. Introduction
14.1.1. Controller Script
14.1.2. View Script
14.2. Controller Scripts
14.2.1. Assigning Variables
14.2.2. Rendering a View Script
14.2.3. View Script Paths
14.3. View Scripts
14.3.1. Escaping Output
14.3.2. Template Systems
14.4. View Helpers
14.4.1. Initial Helpers
14.4.2. Helper Paths
14.4.3. Writing Custom Helpers
15. Zend_XmlRpc
15.1. Introduction
15.2. Zend_XmlRpc_Client
15.2.1. Introduction
15.2.2. Using parameters
15.2.3. Type hinting of parameters
15.2.4. Getting the response
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

12.1. Zend_Search_Lucene_Field Types
13.1. Zend_Service_Amazon_Item Properties
13.2. Zend_Service_Amazon_Image Properties
13.3. Zend_Service_Amazon_OfferSet Properties
13.4. Zend_Service_Amazon_Offer Properties
13.5. Zend_Service_Amazon_SimilarProduct Properties
13.6. Zend_Service_Amazon_Accessories Properties
13.7. Zend_Service_Amazon_CustomerReview Properties
13.8. Zend_Service_Amazon_EditorialReview Properties
13.9. Zend_Service_Amazon_Listmania Properties
13.10. Zend_Service_Flickr_ResultSet Properties
13.11. Zend_Service_Flickr_Result Properties
13.12. Zend_Service_Flickr_Image Properties
13.13. Zend_Service_Yahoo_ResultSet
13.14. Zend_Service_Yahoo_LocalResultSet Properties
13.15. Zend_Service_Yahoo_Result Properties
13.16. Zend_Service_Yahoo_WebResult Properties
13.17. Zend_Service_Yahoo_ImageResult Properties
13.18. Zend_Service_Yahoo_LocalResult Properties
13.19. Zend_Service_Yahoo_NewsResult Properties
13.20. Zend_Service_Yahoo_Image Properties
15.1. PHP native values convertion to XML-RPC types
15.2. Zend_XmlRpc_Value object representing the XML-RPC types

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_Http_Client
6.3. Sending Multiple Headers
6.4. Requesting Multiple Domains
6.5. Sending POST data with Zend_Http_Client
6.6. Working with HTTP Response Data
9.1. Simple E-Mail with Zend_Mail
9.2. Sending E-Mail via SMTP
9.3. Sending Multiple Mails per SMTP Connection
9.4. Using Different Transports
9.5. Sending HTML E-Mail
9.6. E-Mail Messages with Attachments
9.7. Changing the MIME Boundary
9.8. Adding E-Mail Message Headers
11.1. Create new or load existing PDF document.
11.2. Requesting specified revision of the PDF document.
11.3. Save PDF document.
11.4. PDF document pages management.
11.5. Create standard font.
11.6. Image drawing.
11.7. Zend_Pdf module usage demo.
12.1. Custom text Analyser.
13.1. A basic REST Request
13.2. Search Amazon Using the Traditional API
13.3. Search Amazon Using the Query API
13.4. Choosing an Amazon Web Service Country
13.5. Looking up a Specific Amazon Item by ASIN
13.6. Performing Amazon Item Searches
13.7. Search Amazon Using the Alternative Query API
13.8. Simple Flickr Photo Search
13.9. Finding a Flickr User by E-Mail Address
13.10. Retrieving Flickr Image Details
13.11. Searching the Web with Yahoo!
13.12. Finding Images with Yahoo!
13.13. Finding Local Businesses and Services with Yahoo!
13.14. Searching Yahoo! News
15.1. A basic XML-RPC request
15.2. Calling an XML-RPC service with type hinting