tailieunhanh - Mastering Joomla! 1.5 Extension and Framework Development phần 4

gây ra hoặc bị cáo buộc gây ra trực tiếp hoặc gián tiếp bởi cuốn sách này. đã cố gắng để cung cấp nhãn hiệu hàng hoáHướng dẫn của chuyên nghiệp để lập trình Joomla!Khi chúng tôi thực hiện bất kỳ thay đổi phiên làm việc của người sử dụng, | Chapter 5 Summary The two flavors in which modules come frontend and backend essentially define two different types of extension. Backend modules are often overlooked because we tend to be less aware of them. We should try to remember that backend modules are very powerful and can greatly enhance the administrative capabilities of components. Modules are integral to the success of a component. It s not uncommon for one component to include several modules. The simple nature of modules makes it easy to become sophisticated about them. It s important to remember that because they are used and rendered so frequently efficient code is essential to good module design. 131 Plugin Design Plugins enable us to modify system functionality without the need to alter existing code. For example plugins can be used to alter content before it is displayed extend search functionality or implement a custom authentication mechanism. As an example this chapter shows how to replace a string in an article with an image. Plugins use the Observer pattern to keep an eye on events. It is by listening to these events that we can modify the system functionality. However this also means that we are limited to only modifying those parts of the system that raise events. Plugins represent the listener and they can define either a listener class or a listener function to handle specific events. In this chapter we will cover the following Setting up a Sandbox Events Listeners Plugin Groups Loading Plugins Using Plugins as libraries in lieu of library extensions Translating Plugins Dealing with Plugin Settings Parameters Packaging File Naming .

TỪ KHÓA LIÊN QUAN