Prev | Current Page 179 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

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 Conflicts
??? ??? ??? ??? ??? ??? ??? ??? ??? ???
Plugin Design
[ 134 ]
Setting Up a Sandbox
When we start building a new plugin it is imperative that we have a sandbox:
somewhere we can test our code. Ideally, we should have more than one system so
we can test our plugins on different server setups.
To set up a plugin sandbox we can create a basic installer. The XML displayed below
can be used to create a blank plugin called 'Foobar - My Extension'.

"http://dev.


Pages:
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
dieta light fenomenalne mieszkania do wynajęcia warszawa katalog stron życzenia z okazji urodzin fenster berlin