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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


Allow the user to modify the parameters, via the user's component. To do
this, we need to modify the users.xml file (for more information about
editing XML, see Chapter 10).
Before we begin, there is something we need to understand. A JUser object
essentially has two sets of parameters, a RAW parameters string or array (params)
and a JParameter object (_params).
Both of these are loaded from the database when the user's session starts. If we modify
either of them, the changes will be present only until the user's session ends. If we
want to save the parameters to the database, as is normally the case, we can use the
save() method. This will update the parameters based on the RAW parameters alone.
??? ??? ???
???
??? ???
Extension Design
[ 180 ]
When we use the setParam() method only the JParameter object is modified. It is
because of this that we must update the RAW params attribute before saving. We
must take extra care when saving changes to the user's parameters. Poor handling
can result in loss of data.


Pages:
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6