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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

'filter_state',
'filter_state');
$filter_catid = $mainframe->getUserStateFromRequest(
>$option.'filter_catid',
Chapter 8
[ 239 ]
'filter_catid');
$filter_search = $mainframe->getUserStateFromRequest(
>$option.'filter_search',
'filter_search');
// set the table filter values
$lists['state'] = JHTML::_('grid.state', $filter_state);
$js = 'onchange="document.adminForm.submit();"';
$lists['catid'] = JHTML::_('list.category', 'filter_catid',
'com_myextension', (int)$filter_catid, $js);
$lists['search'] = $filter_search;
// add the lists array to the object
$this->assignRef('lists', $lists);
That's it! Now all we need to do is implement the search in the JModel. To do this,
we again modify the _buildQueryWhere() method. This example demonstrates how
we do it:
/**
* Builds the WHERE part of a query
*
* @return string Part of an SQL query
*/
function _buildQueryWhere()
{
global $mainframe, $option;
// get the filter values
$filter_state = $mainframe->getUserStateFromRequest(
>$option.'filter_state',
'filter_state');
$filter_catid = $mainframe->getUserStateFromRequest(
>$option.


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