-
- /** Declare a plugin parameter.
- */
- function declareParam($key, $val)
- {
- $this->params[$key] = $val;
- }
-
-
- /** Return an array of parameter names.
- */
- function getParamNames()
- {
- return array_keys($this->params);
- }
-
-
- /** Return the value of a parameter of the plugin.
- */
- function getParamValue($key)
- {
- return isset($this->params[$key]) ? $this->params[$key] : '';
- }
-
-
- /** Set the value of a parameter of the plugin.
- */
- function setParamValue($key, $val)
- {
- if (isset($this->params[$key])) {
- //echo "$this->name : Calling setParamValue($key, $val)<br/>\n";
- $this->params[$key] = $val;
- } else {
- //echo "$this->name : skipping setParamValue($key, $val)<br/>\n";
- }
- }
-
-