"Fossies" - the Fresh Open Source Software Archive

Member "metadot/metadot/Metadot/Filters/AbstractFilter.pm" (1 Jul 2005, 1704 Bytes) of package /linux/www/old/Metadot6.4.5.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "AbstractFilter.pm" see the Fossies "Dox" file reference documentation.

    1 ###########################################################################
    2 # <LICENSEINFO>
    3 # Copyright (C) Daniel Guermeur - 1999-2001
    4 # Copyright (C) Metadot Corporation - 2001-2005
    5 #
    6 # This file is part of Metadot Portal Server software $Name: Release_6_4_5_4 $
    7 #
    8 # Metadot Portal Server software is free software; you can
    9 # redistribute it and/or modify it under the terms of the GNU General Public
   10 # License as published by the Free Software Foundation; either version 2 of
   11 # the License, or (at your option) any later version.
   12 #
   13 # Metadot Portal Server software is distributed in the hope that it
   14 # will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
   15 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
   16 # Public License for more details.
   17 #
   18 # You should have received a copy of the GNU General Public License along with
   19 # Metadot Portal Server; if not, write to the Free Software
   20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   21 #
   22 # For more information, please contact info@metadot.com.
   23 #</LICENSEINFO>
   24 ############################################################################
   25 
   26 package Metadot::Filters::AbstractFilter;
   27 
   28 use strict;
   29 use vars qw(@ISA);
   30 
   31 @ISA=qw();
   32 
   33 # class variables
   34 
   35 
   36 ####################################
   37 sub new {
   38     my $proto = shift;
   39     my $class = ref($proto) || $proto;
   40 
   41     my $self = {};
   42 
   43     bless ($self, $class);
   44     return $self;
   45 }
   46 
   47 ###################################
   48 
   49 # applies the content filters against the content provided.
   50 # NOTE: this is an abstract method
   51 sub filter {
   52     my $self = shift;
   53     my @instances = @_;
   54 
   55     # filtering logic goes here
   56 
   57     return @instances;
   58 }
   59 
   60 
   61 1;