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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

This is because the listFooter deals with this for us.
Returning to our column heading there were two other parameters: the text that
appears at the top of the column, and the sort value.
The first of these is very straightforward. The second is slightly more ambiguous. It
is the value that will be placed in the filter_order form field should we choose to we choose to
order our itemized data by this column.
Rendering Output
[ 230 ]
In order for us to be able to use these headings to their expected effect we need to
modify our JModel class to deal with these.
Earlier we spoke about the use of a _buildQuery() method to create the query with
which we retrieve itemized data. This is an example of such a method:
/**
* Builds a query to get data from #__sometable
*
* @return string SQL query
*/
function _buildQuery()
{
return ' SELECT * ' .
' FROM #__sometable ' . $this->_buildQueryOrderBy();
}
This method in turn calls a method named _buildQueryOrderBy() that builds
the ORDER BY clause for the query.


Pages:
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6