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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

This example demonstrates how we
would use the method to get the value of the parameter aparam:
$this->params->get('aparam');
We can also pass a second parameter to get(), a default value, which will be
returned if no value already exists for the parameter.
We use set() to set a value for a parameter. This example demonstrates how we
would use the method to set a value of value for the parameter aparam:
$this->params->set('aparam', 'value');
If we are using functions to handle events we must manually get the plugin
parameters. To do this we can use the JPluginHelper class. This example demonstrates
how we would get the parameters for a plugin called bar, in the group foo:
// get an object with all the data about the plugin
$plugin =& JPluginHelper::getPlugin('foo', 'bar');
$params = new JParameter($plugin->params);
As a rule, it is easier and more efficient to use a JPlugin subclass if we
intend to use parameters with a plugin.
Packaging
Plugins are packaged in archive files. A number of archive formats are supported; .


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