Rozdział 18. Zend_Form

Spis treści

18.1. Zend_Form
18.2. Szybki start z Zend_Form
18.2.1. Tworzenie obiektu formularza
18.2.2. Dodawanie elementów do formularza
18.2.3. Renderowanie formularza
18.2.4. Sprawdzanie poprawności formularza
18.2.5. Pobieranie informacji o błędach
18.2.6. Złożenie tego w całość
18.2.7. Użycie oiektu Zend_Config
18.2.8. Podsumowanie
18.3. Tworzenie elementów formularza za pomocą klasy Zend_Form_Element
18.3.1. Ładowanie wtyczek
18.3.2. Filtry
18.3.3. Weryfikatory
18.3.3.1. Własne komunikaty błędów
18.3.4. Dekoratory
18.3.5. Dane meta i atrybuty
18.3.6. Standardowe elementy
18.3.7. Metody klasy Zend_Form_Element
18.3.8. Konfiguracja
18.3.9. Własne elementy
18.4. Creating Forms Using Zend_Form
18.4.1. Plugin Loaders
18.4.2. Elements
18.4.2.1. Populating and Retrieving Values
18.4.2.2. Global Operations
18.4.2.3. Methods For Interacting With Elements
18.4.3. Display Groups
18.4.3.1. Global Operations
18.4.3.2. Using Custom Display Group Classes
18.4.3.3. Methods for Interacting With Display Groups
18.4.3.4. Zend_Form_DisplayGroup Methods
18.4.4. Sub Forms
18.4.4.1. Global Operations
18.4.4.2. Methods for Interacting With Sub Forms
18.4.5. Metadata and Attributes
18.4.6. Decorators
18.4.7. Validation
18.4.7.1. Custom Error Messages
18.4.8. Methods
18.4.9. Configuration
18.4.10. Custom forms
18.5. Creating Custom Form Markup Using Zend_Form_Decorator
18.5.1. Operation
18.5.2. Standard Decorators
18.5.3. Custom Decorators
18.5.4. Rendering Individual Decorators
18.6. Standard Form Elements Shipped With Zend Framework
18.6.1. Zend_Form_Element_Button
18.6.2. Zend_Form_Element_Captcha
18.6.3. Zend_Form_Element_Checkbox
18.6.4. Zend_Form_Element_File
18.6.5. Zend_Form_Element_Hidden
18.6.6. Zend_Form_Element_Hash
18.6.7. Zend_Form_Element_Image
18.6.8. Zend_Form_Element_MultiCheckbox
18.6.9. Zend_Form_Element_Multiselect
18.6.10. Zend_Form_Element_Password
18.6.11. Zend_Form_Element_Radio
18.6.12. Zend_Form_Element_Reset
18.6.13. Zend_Form_Element_Select
18.6.14. Zend_Form_Element_Submit
18.6.15. Zend_Form_Element_Text
18.6.16. Zend_Form_Element_Textarea
18.7. Standard Form Decorators Shipped With Zend Framework
18.7.1. Zend_Form_Decorator_Callback
18.7.2. Zend_Form_Decorator_Captcha
18.7.3. Zend_Form_Decorator_Description
18.7.4. Zend_Form_Decorator_DtDdWrapper
18.7.5. Zend_Form_Decorator_Errors
18.7.6. Zend_Form_Decorator_Fieldset
18.7.7. Zend_Form_Decorator_File
18.7.8. Zend_Form_Decorator_Form
18.7.9. Zend_Form_Decorator_FormElements
18.7.10. Zend_Form_Decorator_HtmlTag
18.7.11. Zend_Form_Decorator_Image
18.7.12. Zend_Form_Decorator_Label
18.7.13. Zend_Form_Decorator_ViewHelper
18.7.14. Zend_Form_Decorator_ViewScript
18.8. Internationalization of Zend_Form
18.8.1. Initializing I18n in Forms
18.8.2. Standard I18n Targets
18.9. Advanced Zend_Form Usage
18.9.1. Array Notation
18.9.2. Multi-Page Forms

18.1. Zend_Form

Komponent Zend_Form upraszcza tworzenie i obsługę formularzy w twojej aplikacji. Zapewnia realizację następujących zadań:

  • Filtrowanie i weryfikację wprowadzonych informacji

  • Ustalanie kolejności elementów

  • Renderowanie elementów i formularzy

  • Grupowanie elementów i formularzy

  • Konfigurację elementów i formularzy

Komponent jest w dużym stopniu oparty o inne komponenty Zend Framework takie jak Zend_Config, Zend_Validate, Zend_Filter, Zend_Loader_PluginLoader oraz opcjonalnie Zend_View.