* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-require_once 'Plugin/Filter.php';
+require_once 'Plugin/Skel/Filter.php';
require_once 'diogenes/diogenes.hermes.inc.php';
/** The HttpHeader plugin allows you to add an HTTP header to a page.
*/
-class HttpHeader extends Diogenes_Plugin_Filter
+class HttpHeader extends Diogenes_Plugin_Skel_Filter
{
/** Plugin name */
var $name = "HttpHeader";
/** Plugin description */
var $description = "This plugin allows you to add an HTTP header to a page.";
- /** Plugin parameters */
- var $params = array('contents' => '');
+
+ /** Constructor.
+ */
+ function HttpHeader()
+ {
+ $this->declareParam('contents', '');
+ }
+
/** Apply filtering to the input and return an output.
*
*/
function filter($input)
{
- $header = $this->params['contents'];
-
+ $header = $this->getParamValue('contents');
if ($header)
{
header($header);
}
-
return $input;
}