Programmer's Reference Guide

Zend Framework

2007-02-21


Table of Contents

1. Zend
1.1. Introduction
1.2. Zend::loadFile()
1.3. Zend::loadClass()
1.4. Zend::isReadable()
1.5. Zend::exception()
1.6. Zend::dump()
1.7. Zend::register($index, $newval)
1.8. Zend::registry($index = null)
1.9. Zend::initRegistry($registry = 'Zend_Registry')
2. Zend_Acl
2.1. Introduction
2.1.1. About Resources
2.1.2. About Roles
2.1.3. Creating the Access Control List (ACL)
2.1.4. Registering Roles
2.1.5. Defining Access Controls
2.1.6. Querying the ACL
2.2. Refining Access Controls
2.2.1. Precise Access Controls
2.2.2. Removing Access Controls
2.3. Advanced Use
2.3.1. Storing ACL Data for Persistence
2.3.2. Writing Conditional ACL Rules with Assertions
3. Zend_Auth
3.1. Introduction
3.1.1. Adapters
3.1.2. Results
3.1.3. Identity Persistence
3.1.4. Using Zend_Auth
3.2. Digest Authentication
3.2.1. Introduction
3.2.2. Specifics
3.2.3. Identity
4. Zend_Cache
4.1. Introduction
4.2. The theory of caching
4.2.1. The Zend_Cache factory method
4.2.2. Tagging records
4.2.3. Cleaning the cache
4.3. Zend_Cache frontends
4.3.1. Zend_Cache_Core
4.3.2. Zend_Cache_Frontend_Output
4.3.3. Zend_Cache_Frontend_Function
4.3.4. Zend_Cache_Frontend_Class
4.3.5. Zend_Cache_Frontend_File
4.3.6. Zend_Cache_Frontend_Page
4.4. Zend_Cache backends
4.4.1. Zend_Cache_Backend_File
4.4.2. Zend_Cache_Backend_Sqlite
4.4.3. Zend_Cache_Backend_Memcached
4.4.4. Zend_Cache_Backend_APC
4.4.5. Zend_Cache_Backend_ZendPlatform
5. Zend_Config
5.1. Introduction
5.2. Theory of Operation
5.3. Zend_Config_Ini
5.4. Zend_Config_Xml
6. Zend_Console_Getopt
6.1. Introduction to Getopt
6.2. Declaring Getopt Rules
6.2.1. Declaring Options with the Short Syntax
6.2.2. Declaring Options with the Long Syntax
6.3. Fetching Options and Arguments
6.3.1. Handling Getopt Exceptions
6.3.2. Fetching Options by Name
6.3.3. Reporting Options
6.3.4. Fetching Non-option Arguments
6.4. Configuring Zend_Console_Getopt
6.4.1. Adding Option Rules
6.4.2. Adding Help Messages
6.4.3. Adding Option Aliases
6.4.4. Adding Argument Lists
6.4.5. Adding Configuration
7. Zend_Controller
7.1. Overview
7.1.1. Introduction
7.1.2. Request Object
7.1.3. Route Process
7.1.4. Dispatch Process
7.1.5. Response Object
7.2. Getting Started
7.2.1. Introduction
7.2.2. Server Configuration
7.2.3. Bootstrap File
7.2.4. Directory Structure
7.2.5. Default Controller
7.3. Subclassing
7.3.1. Introduction
7.3.2. Conventions
7.3.3. Request Abstract
7.3.4. Router Interface
7.3.5. Dispatcher Interface
7.3.6. Action Controller
7.3.7. Response Object
7.4. Provided Subclasses
7.4.1. Introduction
7.4.2. Zend_Controller_Request_Http
7.4.3. Zend_Controller_RewriteRouter
7.4.4. Zend_Controller_Response_Http
7.4.5. Zend_Controller_Response_Cli
7.5. Action Controllers
7.5.1. Uvod
7.5.2. Inicializácia objektu
7.5.3. Pre- and Post-Dispatch Hooks
7.5.4. Accessors
7.5.5. Utility Methods
7.6. Plugins
7.6.1. Introduction
7.6.2. Writing Plugins
7.6.3. Using Plugins
7.7. Using a Conventional Modular Directory Structure
7.7.1. Introduction
7.7.2. Specifying Module Controller Directories
7.7.3. ModuleRouter, ModuleRewriteRouter, and ModuleDispatcher
7.7.4. Module or Global Default Controller
7.8. MVC Exceptions
7.8.1. Introduction
7.8.2. How can you handle exceptions?
7.8.3. MVC Exceptions You May Encounter
7.9. Migrating from Previous Versions
7.9.1. Migrating from 0.2.0 or before to 0.6.0
8. Zend_Date
8.1. Introduction
8.1.1. Always Set a Default Timezone
8.1.2. Why Use Zend_Date?
8.2. Basic Methods
8.2.1. The current date
8.2.2. Zend_Date by Example
8.3. Theory of Operation
8.3.1. Internals
8.4. Zend_Date API Overview
8.4.1. Working with Date Values
8.4.2. Basic Zend_Date Operations Common to Many Date Parts
8.4.3. Comparing Dates
8.4.4. Getting Dates and Date Parts
8.4.5. Working with Fractions of Seconds
8.4.6. Sunrise / Sunset
8.5. Constants for General Date Functions
8.5.1. Using Constants
8.5.2. List of All Constants
8.5.3. Self-Defined Formats
9. Zend_Db
9.1. Zend_Db_Adapter
9.1.1. Introduction
9.1.2. Quoting Against SQL Injection
9.1.3. Direct Queries
9.1.4. Transactions
9.1.5. Inserting Rows
9.1.6. Updating Rows
9.1.7. Deleting Rows
9.1.8. Fetching Rows
9.2. Zend_Db_Profiler
9.2.1. Introduction
9.2.2. Using the Profiler
9.2.3. Advanced Profiler Usage
9.3. Zend_Db_Select
9.3.1. Introduction
9.3.2. Columns FROM a Table
9.3.3. Columns from JOINed Tables
9.3.4. WHERE Conditions
9.3.5. GROUP BY Clause
9.3.6. HAVING Conditions
9.3.7. ORDER BY Clause
9.3.8. LIMIT By Count and Offset
9.3.9. LIMIT By Page And Count
9.4. Zend_Db_Table
9.4.1. Introduction
9.4.2. Getting Started
9.4.3. Table Name and Primary Key
9.4.4. Inserting Rows
9.4.5. Updating Rows
9.4.6. Deleting Rows
9.4.7. Finding Rows by Primary Key
9.4.8. Fetching One Row
9.4.9. Fetching Multiple Rows
9.4.10. Adding Domain Logic
9.5. Zend_Db_Table_Row
9.5.1. Introduction
9.5.2. Fetching a Row
9.5.3. Modifying Values
9.6. Zend_Db_Table_Rowset
9.6.1. Introduction
9.6.2. Fetching a Rowset
9.6.3. Iterating Through the Rowset
10. Zend_Feed
10.1. Introduction
10.2. Importing Feeds with Zend_Feed
10.3. Retrieving Feeds from Web Pages
10.4. Consuming an RSS Feed
10.5. Consuming an Atom Feed
10.6. Consuming a Single Atom Entry
10.7. Modifying Feed and Entry structures
10.8. Custom Feed and Entry Classes
11. Zend_Filter
11.1. Zend_Filter
11.1.1. Introduction
11.1.2. Use Cases
11.2. Filter Chains
11.3. Writing Filters
11.4. Zend_Filter_Input
11.4.1. Introduction
11.4.2. Whitelist Filtering
11.4.3. Blind Filtering
11.4.4. Blacklist Filtering
11.4.5. Theory of Operation
11.4.6. Use Cases
12. Zend_Gdata
12.1. Introduction to Gdata
12.1.1. Google Data Client Authentication
12.1.2. Dependencies
12.1.3. Creating a new Gdata client
12.1.4. Common query parameters
12.1.5. Fetching a feed
12.1.6. Posting entries to Google servers
12.1.7. Deleting entries on Google servers
12.2. Authenticating with AuthSub
12.2.1. Creating an AuthSub authenticated Http Client
12.2.2. Revoking AuthSub authentication
12.3. Authenticating with ClientLogin
12.3.1. Creating a ClientLogin authenticated Http Client
12.3.2. Terminating a ClientLogin authenticated Http Client
12.4. Using Google Base
12.4.1. Querying Base data
12.4.2. Updating Base data
12.4.3. Querying Base metadata
12.5. Using Google Blogger
12.5.1. Understanding Blogger version compatibility
12.5.2. Querying a blog
12.5.3. Posting to your blog
12.6. Using Google Calendar
12.6.1. Querying Google Calendar
12.6.2. Posting to Google Calendar
12.7. Using Google CodeSearch
12.8. Using the Gdata Data Helper
12.9. Catching Gdata Exceptions
13. Zend_Http
13.1. Zend_Http_Client - Introduction
13.1.1. Introduction
13.1.2. Configuration Parameters
13.1.3. Performing Basic HTTP Requests
13.1.4. Adding GET and POST parameters
13.2. Zend_Http_Client - Advanced Usage
13.2.1. HTTP Redirections
13.2.2. Adding Cookies and Using Cookie Persistence
13.2.3. Setting Custom Request Headers
13.2.4. File Uploads
13.2.5. Sending Raw POST Data
13.2.6. HTTP Authentication
13.2.7. Sending Multiple Requests With the Same Client
13.3. Zend_Http_Client - Connection Adapters
13.3.1. Overview
13.3.2. The Socket Adapter
13.3.3. The Proxy Adapter
13.3.4. The Test Adapter
13.3.5. Creating your own connection adapters
13.4. Zend_Http_Cookie and Zend_Http_CookieJar
13.4.1. Introduction
13.4.2. Instantiating Zend_Http_Cookie Objects
13.4.3. Zend_Http_Cookie getter methods
13.4.4. Zend_Http_Cookie: Matching against a scenario
13.4.5. The Zend_Http_CookieJar Class: Instantiation
13.4.6. Adding Cookies to a Zend_Http_CookieJar object
13.4.7. Retrieving Cookies From a Zend_Http_CookieJar object
13.5. Zend_Http_Response
13.5.1. Introduction
13.5.2. Boolean Tester Methods
13.5.3. Accessor Methods
13.5.4. Static HTTP Response Parsers
14. Zend_Json
14.1. Introduction
14.2. Basic Usage
14.3. JSON Objects
15. Zend_Locale
15.1. Introduction
15.1.1. What is Localization
15.1.2. What is a Locale?
15.1.3. How are Locales Represented?
15.1.4. Selecting the Right Locale
15.1.5. ZF Locale-Aware Classes
15.2. Using Zend_Locale
15.2.1. Copying, Cloning, and Serializing Locale Objects
15.2.2. isEqual() - Equality
15.2.3. Default locales
15.2.4. Set a new locale
15.2.5. Getting the language and region
15.2.6. Obtaining localized name for languages, regions, and calendars
15.2.7. Get an translated string of an script
15.2.8. Get a list of scripts
15.2.9. Obtaining translations for "yes" and "no"
15.3. Normalization and Localization
15.3.1. Number normalization: getNumber($input, $precision = false, $locale = false)
15.3.2. Number localization
15.3.3. Number testing
15.3.4. Float value normalization
15.3.5. Floating point value localization
15.3.6. Floating point value testing
15.3.7. Integer value normalization
15.3.8. Integer point value localization
15.3.9. Integer value testing
15.3.10. Numeral System Conversion
15.4. Working with Dates and Times
15.4.1. Normalizing Dates and Times
15.4.2. Testing Dates
15.4.3. Normalizing a Time
15.4.4. Testing Times
15.5. Supported Languages for Locales
15.6. Supported Regions for Locales
16. Zend_Log
16.1. Introduction
16.2. Logging to a Single Log
16.3. Log Levels
16.4. Advanced Logging: Multiple Loggers
17. Zend_Mail
17.1. Introduction
17.2. Sending via SMTP
17.3. Sending Multiple Mails per SMTP Connection
17.4. Using Different Transports
17.5. HTML E-Mail
17.6. Attachments
17.7. Adding Recipients
17.8. Controlling the MIME Boundary
17.9. Additional Headers
17.10. Character Sets
17.11. Encoding
17.12. SMTP Authentication
17.13. Securing SMTP Transport
17.14. Reading Mail Messages
17.14.1. Simple example using Pop3
17.14.2. Opening a local storage
17.14.3. Opening a remote storage
17.14.4. Fetching messages and simple methods
17.14.5. Working with messages
17.14.6. Using folders
17.14.7. Advanced Use
18. Zend_Measure
18.1. Introduction
18.2. Creation of Measurements
18.2.1. Measurements from variables
18.2.2. Measurements from strings
18.2.3. Measurements from localized strings
18.3. Outputting measurements
18.3.1. Automatic output
18.3.2. Outputting values
18.3.3. Output with unit of measurement
18.3.4. Output as localized string
18.4. Manipulating measurements
18.4.1. Convert
18.4.2. Add and subtract
18.4.3. Compare
18.4.4. Calculate differences
18.4.5. Manually change values
18.4.6. Manually change types
18.5. Special functions
18.5.1. Serializing and Deserializing
18.5.2. Listing all known types
18.5.3. Listing all known units
18.6. Types of measurements
18.6.1. Zend_Measure_Acceleration
18.6.2. Zend_Measure_Angle
18.6.3. Zend_Measure_Area
18.6.4. Zend_Measure_Binary
18.6.5. Zend_Measure_Capacitance
18.6.6. Zend_Measure_Cooking_Volume
18.6.7. Zend_Measure_Cooking_Weight
18.6.8. Zend_Measure_Current
18.6.9. Zend_Measure_Density
18.6.10. Zend_Measure_Energy
18.6.11. Zend_Measure_Force
18.6.12. Zend_Measure_Flow_Mass
18.6.13. Zend_Measure_Flow_Mole
18.6.14. Zend_Measure_Flow_Volume
18.6.15. Zend_Measure_Frequency
18.6.16. Zend_Measure_Illumination
18.6.17. Zend_Measure_Length
18.6.18. Zend_Measure_Lightness
18.6.19. Zend_Measure_Number
18.6.20. Zend_Measure_Power
18.6.21. Zend_Measure_Pressure
18.6.22. Zend_Measure_Speed
18.6.23. Zend_Measure_Temperature
18.6.24. Zend_Measure_Torque
18.6.25. Zend_Measure_Viscosity_Dynamic
18.6.26. Zend_Measure_Viscosity_Kinematic
18.6.27. Zend_Measure_Volume
18.6.28. Zend_Measure_Weight
19. Zend_Mime
19.1. Zend_Mime
19.1.1. Introduction
19.1.2. Static Methods and Constants
19.1.3. Instantiating Zend_Mime
19.2. Zend_Mime_Message
19.2.1. Introduction
19.2.2. Instantiation
19.2.3. Adding MIME Parts
19.2.4. Boundary handling
19.2.5. parsing a string to create a Zend_Mime_Message object (experimental)
19.3. Zend_Mime_Part
19.3.1. Introduction
19.3.2. Instantiation
19.3.3. Methods for rendering the message part to a string
20. Zend_Pdf
20.1. Introduction.
20.2. Creating and loading PDF documents.
20.3. Save changes to the PDF document.
20.4. Document pages.
20.5. Drawing.
20.5.1. Geometry.
20.5.2. Colors.
20.5.3. Shape Drawing.
20.5.4. Text Drawing.
20.5.5. Using fonts.
20.5.6. Image Drawing.
20.5.7. Line drawing style.
20.5.8. Fill style.
20.5.9. Rotations.
20.5.10. Save/restore graphics state.
20.5.11. Clipping draw area.
20.5.12. Styles.
20.6. Zend_Pdf module usage example.
21. Zend_Rest
21.1. Introduction
21.2. Zend_Rest_Client
21.2.1. Introduction
21.2.2. Responses
21.2.3. Request Arguments
21.3. Zend_Rest_Server
21.3.1. Introduction
21.3.2. REST Server Usage
21.3.3. Calling a Zend_Rest_Server Service
21.3.4. Sending A Custom Status
21.3.5. Returning Custom XML Responses
22. Zend_Search
22.1. Overview
22.1.1. Introduction
22.1.2. Document and Field Objects
22.1.3. Understanding Field Types
22.2. Building Indexes
22.2.1. Creating a New Index
22.2.2. Updating Index
22.2.3. Updating Documents
22.2.4. Index optimization
22.2.5. Limitationas
22.3. Searching an Index
22.3.1. Building Queries
22.3.2. Search Results
22.3.3. Results Scoring
22.3.4. Search Result Sorting
22.4. Query Language
22.4.1. Terms
22.4.2. Fields
22.4.3. Term Modifiers
22.4.4. Proximity Searches
22.4.5. Boosting a Term
22.4.6. Boolean Operators
22.4.7. Grouping
22.4.8. Field Grouping
22.4.9. Escaping Special Characters
22.5. Query Construction API
22.5.1. Query Parser Exceptions
22.5.2. Term Query
22.5.3. Multi-Term Query
22.5.4. Phrase Query
22.6. Character set.
22.6.1. UTF-8 and single-byte character sets support.
22.6.2. Default text analyzer.
22.6.3. UTF-8 compatible text analyzer.
22.7. Extensibility
22.7.1. Text Analysis
22.7.2. Tokens Filtering
22.7.3. Scoring Algorithms
22.7.4. Storage Containers
22.8. Interoperating with Java Lucene
22.8.1. File Formats
22.8.2. Index Directory
22.8.3. Java Source Code
22.8.4. Using LuceneIndexCreation.jar
23. Zend_Server
23.1. Introduction
23.2. Zend_Server_Reflection
23.2.1. Introduction
23.2.2. Usage
24. Zend_Service
24.1. Introduction
24.2. Zend_Service_Akismet
24.2.1. Introduction
24.2.2. Verify an API key
24.2.3. Check for spam
24.2.4. Submitting known spam
24.2.5. Submitting false positives (ham)
24.2.6. Zend-specific Accessor Methods
24.3. Zend_Service_Amazon
24.3.1. Introduction
24.3.2. Country Codes
24.3.3. Looking up a Specific Amazon Item by ASIN
24.3.4. Performing Amazon Item Searches
24.3.5. Using the Alternative Query API
24.3.6. Zend_Service_Amazon Classes
24.4. Zend_Service_Flickr
24.4.1. Introduction to Searching Flickr
24.4.2. Finding Flickr Users
24.4.3. Retrieving Flickr Image Details
24.4.4. Zend_Service_Flickr Classes
24.5. Zend_Service_Yahoo
24.5.1. Introduction
24.5.2. Searching the Web with Yahoo!
24.5.3. Finding Images with Yahoo!
24.5.4. Finding Local Businesses and Services with Yahoo!
24.5.5. Searching Yahoo! News
24.5.6. Zend_Service_Yahoo Classes
25. Zend_Session
25.1. Introduction
25.2. Basic Usage
25.2.1. Tutorial Examples
25.2.2. Iterating Over Session Namespaces
25.2.3. Accessors for Session Namespaces
25.3. Advanced Usage
25.3.1. Starting a Session
25.3.2. Locking Session Namespaces
25.3.3. Session Encapsulation and Controllers
25.3.4. Limiting Instances of Zend_Session to One Per Namespace
25.4. Global Session Management - Zend_Session_Core
25.4.1. Zend_Session_Core::setOptions()
25.4.2. Options
25.4.3. regenerateId()
25.4.4. rememberMe(integer $seconds)
25.4.5. forgetMe()
25.4.6. sessionExists()
25.4.7. destroy(bool $remove_cookie = true, bool $readonly = true)
25.4.8. stop()
25.4.9. writeClose($readonly = true)
25.4.10. expireSessionCookie()
25.4.11. setSaveHandler(Zend_Session_SaveHandler_Interface $interface)
25.4.12. getInstance($instanceMustExist = false)
25.4.13. namespaceIsset($namespace, $name = null)
25.4.14. namespaceUnset($namespace, $name = null)
25.4.15. namespaceSet($namespace, $name, $value)
25.4.16. namespaceGet($namespace, $name = null)
25.4.17. getIterator()
25.5. Theory
26. Zend_Uri
26.1. Zend_Uri
26.1.1. Overview
26.1.2. Creating a New URI
26.1.3. Manipulating an Existing URI
26.1.4. URI Validation
26.1.5. Common Instance Methods
27. Zend_Validate
27.1. Introduction
27.2. Validator Chains
27.3. Writing Validators
27.4. Validating Email Addresses
27.5. Validating Hostnames
28. Zend_View
28.1. Introduction
28.1.1. Controller Script
28.1.2. View Script
28.2. Controller Scripts
28.2.1. Assigning Variables
28.2.2. Rendering a View Script
28.2.3. View Script Paths
28.3. View Scripts
28.3.1. Escaping Output
28.3.2. Using Alternate Template Systems
28.4. View Helpers
28.4.1. Initial Helpers
28.4.2. Helper Paths
28.4.3. Writing Custom Helpers
29. Zend_XmlRpc
29.1. Introduction
29.2. Zend_XmlRpc_Client
29.2.1. Introduction
29.2.2. Method Calls
29.2.3. Types and Conversions
29.2.4. Server Proxy Object
29.2.5. Error Handling
29.2.6. Server Introspection
29.2.7. From Request to Response
29.2.8. HTTP Client and Testing
29.3. Zend_XmlRpc_Server
29.3.1. Introduction
29.3.2. Basic Usage
29.3.3. Server Structure
29.3.4. Conventions
29.3.5. Utilizing Namespaces
29.3.6. Custom Request Objects
29.3.7. Custom Responses
29.3.8. Handling Exceptions via Faults
29.3.9. Caching Server Definitions Between Requests
29.3.10. Usage Examples
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

2.1. Access Controls for an Example CMS
4.1. Available options
4.2. Available options
4.3. Available options
4.4. Available options
4.5. Available options
4.6. Available options
4.7. Available options
4.8. Available options
8.1. Date Parts
8.2. Basic Operations
8.3. Date Comparison Methods
8.4. Date Output Methods
8.5. Date Output Methods
8.6. Miscellaneous Methods
8.7. Operations involving Zend_Date::HOUR
8.8. Day Constants
8.9. Week Constants
8.10. Month Constants
8.11. Year Constants
8.12. Time Constants
8.13. Timezone Constants
8.14. Date Format Constants (formats include timezone)
8.15. Date and Time Formats (format varies by locale)
8.16. Constants for ISO 8601 date output
12.1. Differences between current Blogger service and Blogger beta service
13.1. Zend_Http_Client configuration parameters
13.2. Zend_Http_Client configuration parameters
15.1. List of supported numeral systems
15.2. Return values
15.3. Format definition
15.4. Example formats
15.5. List of all supported languages
15.6. List of all supported regions
17.1. Mail Read Feature Overview
17.2. Mail Folder Names
22.1. Zend_Search_Lucene_Field Types
24.1. Zend_Service_Amazon_Item Properties
24.2. Zend_Service_Amazon_Image Properties
24.3. Zend_Service_Amazon_OfferSet Properties
24.4. Properties
24.5. Zend_Service_Amazon_SimilarProduct Properties
24.6. Zend_Service_Amazon_Accessories Properties
24.7. Zend_Service_Amazon_CustomerReview Properties
24.8. Zend_Service_Amazon_EditorialReview Properties
24.9. Zend_Service_Amazon_Listmania Properties
24.10. Zend_Service_Flickr_ResultSet Properties
24.11. Zend_Service_Flickr_Result Properties
24.12. Zend_Service_Flickr_Image Properties
24.13. Zend_Service_Yahoo_ResultSet
24.14. Zend_Service_Yahoo_LocalResultSet Properties
24.15. Zend_Service_Yahoo_Result Properties
24.16. Zend_Service_Yahoo_WebResult Properties
24.17. Zend_Service_Yahoo_ImageResult Properties
24.18. Zend_Service_Yahoo_LocalResult Properties
24.19. Zend_Service_Yahoo_NewsResult Properties
24.20. Zend_Service_Yahoo_Image Properties
29.1. PHP and XML-RPC Type Conversions
29.2. Zend_XmlRpc_Value Objects for XML-RPC Types

List of Examples

1.1. register() / offsetSet() Example
1.2. registry() / offsetGet() Example
1.3. isRegistered() / offsetExists() Example
1.4. Iterating Over the Registry
1.5. register() / offsetSet() Example
1.6. Accessing Values Using OO Notation Instead of ArrayAccess Notation
4.1. Getting a frontend with Zend_Cache::factory()
4.2. Caching output with Zend_Cache output frontend
5.1. Using Zend_Config Per Se
5.2. Using Zend_Config_Ini
5.3. Using Zend_Config_Xml
6.1. Using the Short Syntax
6.2. Using the Long Syntax
6.3. Catching Getopt Exceptions
6.4. Using getOption()
6.5. Using __get() and __isset() magic methods
6.6. Using getRemainingArgs()
6.7. Using addRules()
6.8. Using setHelp()
6.9. Using setAliases()
6.10. Using addArguments() and setArguments()
6.11. Using setOption()
6.12. Using setOptions()
8.1. Setting a default timezone
8.2. Creating the current date
8.3. get() - output a date
8.4. set() - set a date
8.5. add() - adding dates
8.6. compare() - compare dates
8.7. equals() - identify a date or date part
8.8. Operating on Parts of Dates
8.9. Example usage for self-defined formats
10.1. Putting Zend_Feed to Work on RSS Feed Data
10.2. Basic Use of an Atom Feed
10.3. Reading a Single-Entry Atom Feed
10.4. Using the Entry Object Directly for a Single-Entry Atom Feed
10.5. Modifying an Existing Feed Entry
10.6. Creating an Atom Entry with Elements of Custom Namespaces
10.7. Extending the Atom Entry Class with Custom Namespaces
13.1. Instantiating a Zend_Http_Client object
13.2. Preforming a Simple GET Request
13.3. Using Request Methods Other Than GET
13.4. Setting GET Parameters
13.5. Setting POST Parameters
13.6. Forcing RFC 2616 Strict Redirections on 301 and 302 Responses
13.7. Setting Cookies Using setCookie()
13.8. Enabling Cookie Stickiness
13.9. Setting A Single Custom Request Header
13.10. Setting Multiple Custom Request Headers
13.11. Using setFileUpload to Upload Files
13.12. Sending Raw POST Data
13.13. Setting HTTP Authentication User and Password
13.14. Performing consecutive requests with one client
13.15. Changing the HTTPS transport layer
13.16. Using Zend_Http_Client behind a proxy server
13.17. Testing Against a Single HTTP Response Stub
13.18. Testing Against Multiple HTTP Response Stubs
13.19. Creating your own connection adapter
13.20. Instantiating a Zend_Http_Cookie object
13.21. Stringifying a Zend_Http_Cookie object
13.22. Using getter methods with Zend_Http_Cookie
13.23. Matching cookies
13.24. Instantiating a Zend_Http_Response object using the factory method
13.25. Using the isError() method to validate a response
13.26. Using Zend_Http_Response Accessor Methods
13.27. Accessing Response Headers
15.1. Choosing a specific locale
15.2. Automatically selecting a locale
15.3. Dates default to correct locale of web users
15.4. Overriding default locale selection
15.5. Performance optimization when using a default locale
15.6. clone
15.7. Check for equal locales
15.8. Get default locales
15.9. setLocale
15.10. getLanguageDisplay
15.11. All Languages written in thier native language
15.12. getScriptDisplay
15.13. getScriptList
15.14. getQuestion()
15.15. Number normalization
15.16. Number normalization with precision
15.17. Number localization
15.18. Number localization with precision
15.19. Number testing
15.20. Floating point value normalization
15.21. Floating point value localization
15.22. Floating point value testing
15.23. Integer value normalization
15.24. Integer value localization
15.25. Integer value testing
15.26. Converting numerals to Arabic/European
15.27. Converting numerals from Arabic/European
15.28. Normalizing a date
15.29. Normalizing a date by locale
15.30. Normalizing a date with time
15.31. Normalizing a userdefined date
15.32. Correction for date normalizing
15.33. Date testing
15.34. Normalize an unknown time
15.35. Testing a time
17.1. Simple E-Mail with Zend_Mail
17.2. Sending E-Mail via SMTP
17.3. Sending Multiple Mails per SMTP Connection
17.4. Using Different Transports
17.5. Sending HTML E-Mail
17.6. E-Mail Messages with Attachments
17.7. Changing the MIME Boundary
17.8. Adding E-Mail Message Headers
17.9. Enabling a secure connection within Zend_Mail_Transport_Smtp
18.1. Converting measurements
18.2. Creation using integer variables
18.3. Creation using strings
18.4. Arbitrary texts
18.5. Arbitrary texts
18.6. Localized string
18.7. Automatic output
18.8. Output a value
18.9. Outputting units
18.10. Convert
18.11. Adding units
18.12. Subtract
18.13. Different measurements
18.14. Identical measurements
18.15. Difference
18.16. Changing a value
18.17. Changing the type
18.18. Serializing
18.19. Deserializing
18.20. Listing all units for a given type
20.1. Create new or load existing PDF document.
20.2. Requesting specified revision of the PDF document.
20.3. Save PDF document.
20.4. PDF document pages management.
20.5. Draw a string on the page.
20.6. Draw a UTF-8-encoded string on the page.
20.7. Create a standard font.
20.8. Create a TrueType font.
20.9. Create a TrueType font, but do not embed it in the PDF document.
20.10. Do not throw an exception for fonts that cannot be embeded.
20.11. Do not compress an embedded font.
20.12. Combining font embedding options.
20.13. Image drawing.
20.14. Zend_Pdf module usage demo.
21.1. A basic REST request
21.2. Response Status
21.3. Using Technorati's Rest Service
21.4. Example Technorati Response
21.5. Setting Request Arguments
21.6. Basic Zend_Rest_Server Usage - Classes
21.7. Basic Zend_Rest_Server Usage - Functions
21.8. Returning Custom Status
21.9. Return Custom XML
22.1. Custom text Analyzer.
24.1. isSpam() Usage
24.2. submitSpam() Usage
24.3. submitHam() Usage
24.4. Search Amazon Using the Traditional API
24.5. Search Amazon Using the Query API
24.6. Choosing an Amazon Web Service Country
24.7. Looking up a Specific Amazon Item by ASIN
24.8. Performing Amazon Item Searches
24.9. Search Amazon Using the Alternative Query API
24.10. Simple Flickr Photo Search
24.11. Finding a Flickr User by E-Mail Address
24.12. Retrieving Flickr Image Details
24.13. Searching the Web with Yahoo!
24.14. Finding Images with Yahoo!
24.15. Finding Local Businesses and Services with Yahoo!
24.16. Searching Yahoo! News
25.1. Counting Page Views
25.2. New Way: Namespaces Avoid Collisions
25.3. Old Way: PHP Session Access
25.4. Session Iteration
25.5. Accessing Session Data
25.6. Starting the Global Session
25.7. Locking Session Namespaces
25.8. Locking Sessions in Views
25.9. Namespaced Sessions for Controllers with Automatic Expiration
25.10. Limiting to Single Instances
25.11. Using Zend_Config to Configure Zend_Session
25.12. myapp.ini
25.13. Anonymous Sessions and Session Fixation
25.14. Unsetting All Namespaces
26.1. Creating a New URI with Zend_Uri::factory()
26.2. Manipulating an Existing URI with Zend_Uri::factory()
26.3. URI Validation with Zend_Uri::check()
26.4. Getting the Scheme from a Zend_Uri_* Object
26.5. Getting the Entire URI from a Zend_Uri_* Object
26.6. Validating a Zend_Uri_* Object
29.1. XML-RPC Method Call
29.2. XML-RPC Method Call with Parameters
29.3. Proxy the Default Namespace
29.4. Proxy Any Namespace
29.5. Handling HTTP Errors
29.6. Handling XML-RPC Faults
29.7. Processing Request to Response