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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

This method is used extensively
in Joomla!'s implementation of pagination.
The method has three parameters, the key (a path), the name of the request, and
a default value. This example retrieves the value of com_myextension.list.
filter.order:
$order = $mainframe-
>getUserStateFromRequest('com_myextension.list.filter.order',
'filter_order', 'name');
The second parameter is especially important. If a request were made in which the
query contained filter_order=owner, the value returned would be owner. It would
also update the user-state to equal owner.
This method is of particular interest when we want to allow a user to modify their
state values. It is for this reason that the getUserStateFromRequest() method is
used extensively in pagination.
There is not a setUserStateFromRequest() method because when we execute the
getUserStateFromRequest() method the value is updated.
As a final note, Joomla! session data is not always stored in the usual way. Joomla!
uses session storage classes to allow alternative methods of data storage.


Pages:
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6