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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

In this example, we retrieve the value of myextension.
example with a default value of null:
$session =& JFactory::getSession();
$value = $session->get('example', null, 'myextension');
Setting values is very similar to retrieving values. In this example, we set the value of
myextension.example to 1:
$session =& JFactory::getSession();
$session->set('example', 1, 'myextension');
Sessions store relatively flat data structures; because of this there is a JRegistry object
within the session,. The JRegistry class uses a far more sophisticated way of storing
data in namespaces. To use this area of the session we use the application method
getUserState(). A more complete explanation of sessions is available in Chapter 7.
Predefined Constants
There are over 400 constants, many of which are part of the third-party libraries,
though we don't need to know them all. One constant with which we will quickly
become familiar is _JEXEC; this constant is used to ensure that when files are
included, they are being included from a valid entry point.


Pages:
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6