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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

php


description="A description" />


In this instance, we have added a text parameter aparam. Parameters that we
define here are used in the Plugin Manager when we edit a plugin. This screenshot
demonstrates how the above parameter would be rendered:
A complete description of the types of parameters and how to define them in XML is
available in the Appendix.
Chapter 6
[ 161 ]
If we are using a JPlugin subclass, we access the defined parameters via the params
attribute within the class. The attribute is a JParameter object.
The most important methods we need to be aware of in the JParameter class are
def(), get(), and set().
We use def() to set a default value for a parameter if no value currently exists for it.
This example demonstrates how we would use the method to set a default value of
value for the parameter aparam:
$this->params->def('aparam', 'value');
We use get() to get the value of a parameter.


Pages:
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6