[pLog-svn] r6126 - plog/branches/lifetype-1.2/class/security

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Mon Dec 24 14:21:06 EST 2007


Author: jondaley
Date: 2007-12-24 14:21:06 -0500 (Mon, 24 Dec 2007)
New Revision: 6126

Removed:
   plog/branches/lifetype-1.2/class/security/nullpipelinefilter.class.php
Modified:
   plog/branches/lifetype-1.2/class/security/pipeline.class.php
Log:
We don't need this null filter do we?

Deleted: plog/branches/lifetype-1.2/class/security/nullpipelinefilter.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/security/nullpipelinefilter.class.php	2007-12-24 19:19:21 UTC (rev 6125)
+++ plog/branches/lifetype-1.2/class/security/nullpipelinefilter.class.php	2007-12-24 19:21:06 UTC (rev 6126)
@@ -1,33 +0,0 @@
-<?php
-
-	lt_include( PLOG_CLASS_PATH."class/security/pipelinefilter.class.php" );
-
-    /**
-     * \ingroup Security
-     *
-     * This is the simplest and fastest filter ever: it does nothing :)
-     *
-     * @see Pipeline
-     * @see PipelineFilter
-     */
-    class NullPipelineFilter extends PipelineFilter 
-    {
-
-    	function NullPipelineFilter( $pipelineRequest )
-        {
-        	$this->PipelineFilter( $pipelineRequest );
-        }
-        
-        /**
-         * Always returns a positive result
-         */
-        function filter()
-        {
-            lt_include( PLOG_CLASS_PATH . 'class/security/pipelineresult.class.php' );
-
-        	$result = new PipelineResult();
-
-            return $result;
-        }
-    }
-?>

Modified: plog/branches/lifetype-1.2/class/security/pipeline.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/security/pipeline.class.php	2007-12-24 19:19:21 UTC (rev 6125)
+++ plog/branches/lifetype-1.2/class/security/pipeline.class.php	2007-12-24 19:21:06 UTC (rev 6126)
@@ -32,8 +32,9 @@
      * eventually uses the static method Pipeline::registerFilter() Since it is static, this method is not restricted
      * to plugins and can be used by any other class at run time to add new filters.
      *
-     * The out of the box implementation of the Pipeline comes with a null filter (a filter that does nothing -- go figure :))
-     * and a filter that implements a Bayesian filter for advanced spam protection. See the BayesianFilter class for more information.
+     * The out of the box implementation of the Pipeline comes with a filter that
+     * implements a Bayesian filter for advanced spam protection. See the
+     * BayesianFilter class for more information.
      */
     class Pipeline  
     {
@@ -81,11 +82,9 @@
          */
         function _registerDefaultFilters()
         {
-            lt_include( PLOG_CLASS_PATH."class/security/nullpipelinefilter.class.php" );
             lt_include( PLOG_CLASS_PATH."class/security/commentfilter.class.php" );
             lt_include( PLOG_CLASS_PATH."class/security/bayesianfilter.class.php" );
 
-            $this->registerFilter( "NullPipelineFilter" );
             $this->registerFilter( "CommentFilter" );
             $this->registerFilter( "BayesianFilter" );
             



More information about the pLog-svn mailing list