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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


We get the object state variables limit and limitstart and pass them to the
_getList() method. The _getList() method is used to get an array of objects from
the database based on a query and, optionally, limit and limitstart.
The _getList() method is defined in the JModel class.
The last two parameters will modify the first parameter, a query, in such a way that
we only return the desired results. For example if we requested page 1 and were
displaying a maximum of 5 items per page, the following would be appended to the
query: LIMIT 0, 5.
Ordering
It's generally nice to allow the user to select a column in a table from which they
want to be able to order itemized data. In Joomla!; we can use the JHTML grid.sort
type to achieve this.
Before we begin we must add two hidden fields to our form of itemized data,
filter_order and filter_order_Dir. The first defines the field by which we want
to order our data and the latter defines the direction in which we want to order our
data, ascending or descending.


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