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 318 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

JText::_('Select a
" Custom Thing').' -');
// append database results
$options = array_merge($options, $db->loadObjectList());
// build form control
$lists['custom'] = JHTML::_('select.genericlist', $options,
'filter_custom', 'class="inputbox" size="1" '.$js,
'value', 'text', $filter_custom);
If we do create custom filter lists such as this, we might want to consider extending
JHTML. For example to create a foobar group type we would create a class named
JHTMLFoobar in a file named foobar.php. We would then need to use the JHTML::
addIncludePath() method to point to the folder where the file is located.
To use the new class we would need to define methods within the class, for example
baz(). We would then be able to call baz() using JHTML::_('foobar.baz'). For
examples of existing classes we can browse the joomla.html library files.
Rendering Output
[ 238 ]
Next up is searching. This functionality may sound more complex, but in reality it is
relatively simple. The first thing we must do to implement a search filter is create the
necessary form controls:



:
value="lists['search'];?>"
class="text_area" onchange=
"document.


Pages:
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6