Name

input-filter — add or remove filters applied to CGI variables

ATTRIBUTES

Attribute Pos. Req. Default Description
name Yes
remove
routine
op
interpolate     0 interpolate input?
reparse     1 interpolate output?

DESCRIPTION

Add or removes filters applied to CGI variables. The mechanism is similar to the filters specified by the Filter directive, the current settings are stored within the session.

BEHAVIOR

This tag does not appear to be affected by, or affect, the rest of Interchange.

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

input-filter is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: code/SystemTag/input_filter.coretag
Lines: 18


# Copyright 2002-2007 Interchange Development Group and others
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.  See the LICENSE file for details.
# 
# $Id: input_filter.coretag,v 1.5 2007-03-30 23:40:49 pajamian Exp $

UserTag input-filter        Order        name
UserTag input-filter        addAttr
UserTag input-filter        attrAlias    var name
UserTag input-filter        attrAlias    variable name
UserTag input-filter        attrAlias    ops op
UserTag input-filter        hasEndTag
UserTag input-filter        PosNumber    1
UserTag input-filter        Version      $Revision: 1.5 $
UserTag input-filter        MapRoutine   Vend::Interpolate::input_filter

Source: lib/Vend/Interpolate.pm
Lines: 918

sub input_filter {
my ($varname, $opt, $routine) = @_;
if($opt->{remove}) {
  return if ! ref $Vend::Session->{Filter};
  delete $Vend::Session->{Filter}{$_};
  return;
}
$opt->{routine} = $routine if $routine =~ /\S/;
$Vend::Session->{Filter} = {} if ! $Vend::Session->{Filter};
$Vend::Session->{Filter}{$varname} = $opt->{op} if $opt->{op};
return;
}

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!