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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


At the top of each column in the itemized data table we create a heading using the
grid. This is an example of a heading for a name column:
>lists['order_Dir'], $this->lists['order']); ?>
After grid.sort the parameters are the name that will appear at the top of the
column, the sort value, the current order direction, and the current column by which
the data is ordered.
We'll concentrate on the last two parameters. Bearing in mind that this code is to be
used in a template file, the lists attribute is something that we must have assigned
to the JView object in the display() method.
Chapter 8
[ 229 ]
This example demonstrates how we build the lists attribute; note that $option and
$mainframe are declared global:
// prepare list array
$lists = array();
// get the user state of the order and direction
$filter_order = $mainframe-
>getUserStateFromRequest($option.'filter_order',
'filter_order', 'published');
$filter_order_Dir = $mainframe-
>getUserStateFromRequest($option.


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