SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 204 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

Exactly how you
implement this will depend upon what you are searching.
onSearch
Description Perform a search and return the results.
Parameters text Search string.
phrase Search type, 'any', 'all', or 'exact'.
ordering
Order of the results, 'newest', 'oldest',
'popular', 'alpha' (alphabetical), or 'category'.
areas Areas to search (based on onSearchArea).
Returns
An array of results. Each result must be an associative array containing
the keys 'title', 'text', 'created', 'href', 'browsernav' (1 = open link in new
window), and 'section' (optional).
onSearchAreas
Description
Gets an array of different areas that can be searched using this plugin.
Every search plugin should return at least one area.
Returns
Associative array of different areas to search. The keys are the area values
and the values are the labels.
Plugin Design
[ 152 ]
System
There are four important system events. We have mentioned these once before, in
Chapter 2 Getting Started they occur in a very specific order and occur every time a
request is made.


Pages:
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216