Wprowadzenie do Zend Framework

     Nauka Zend Framework


     Przewodnik po Zend Framework

  • Zend_Gdata
  • Zend_Http
  • Zend_InfoCard
  • Zend_Json
  • Zend_Layout
  • Zend_Ldap
  • Zend_Loader
  • Zend_Locale
  • Zend_Log
  • Zend_Mail
  • Zend_Markup
  • Zend_Measure
  • Zend_Memory
  • Zend_Mime
  • Zend_Navigation
  • Zend_Oauth
  • Zend_OpenId
  • Zend_Paginator
  • Zend_Pdf
  • Zend_ProgressBar
  • Zend_Queue
  • Zend_Reflection
  • Zend_Registry
  • Zend_Rest

  • Zend_Search_Lucene
  • Zend_Serializer
  • Zend_Server
  • Zend_Service
  • Zend_Session
  • Zend_Soap
  • Zend_Tag
  • Zend_Test
  • Zend_Text
  • Zend_TimeSync
  • Zend_Tool
  • Zend_Tool_Framework
  • Zend_Tool_Project
  • Zend_Translate
  • Zend_Uri
  • Zend_Validate
  • Zend_Version
  • Zend_View
  • Zend_Wildfire
  • Zend_XmlRpc
  • ZendX_Console_Process_Unix
  • ZendX_JQuery
  • Translation 21.3% Update 2011-11-16 - Revision 24356 - Version ZF 1.11.x

    Rozdział 3. Pluginy w Zend Framework

    3.1. Introduction

    Zend Framework makes heavy use of plugin architectures. Plugins allow for easy extensibility and customization of the framework while keeping your code separate from Zend Framework's code.

    Typically, plugins in Zend Framework work as follows:

    • Plugins are classes. The actual class definition will vary based on the component -- you may need to extend an abstract class or implement an interface, but the fact remains that the plugin is itself a class.

    • Related plugins will share a common class prefix. For instance, if you have created a number of view helpers, they might all share the class prefix "Foo_View_Helper_".

    • Everything after the common prefix will be considered the plugin name or short name (versus the "long name", which is the full classname). For example, if the plugin prefix is "Foo_View_Helper_", and the class name is "Foo_View_Helper_Bar", the plugin name will be simply "Bar".

    • Plugin names are typically case sensitive. The one caveat is that the initial letter can often be either lower or uppercase; in our previous example, both "bar" and "Bar" would refer to the same plugin.

    Now let's turn to using plugins.

    digg delicious meneame google twitter technorati facebook