[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/security/ -> pipeline.class.php (sommaire)

\defgroup Security The Security module provides a basic implementation of a generic Pipeline to which we can register "filters", which wil carry out specific actions. Any of the filters can interrupt the processing, depending on the logic of the filter. Please see the Pipeline class for more information.

Poids: 174 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 4 fois
Nécessite: 0 fichiers

Définit 1 class

Pipeline:: (4 méthodes):
  Pipeline()
  _registerDefaultFilters()
  registerFilter()
  process()


Classe: Pipeline  - X-Ref

\ingroup Security

Implementation of a basic security framework based on a
pipeline. Every element of the pipeline implements a simple
security mechanism. When one of the filters in the pipeline
find a condition that is matched by the incoming request, the
request will be blocked and the processing of the pipeline will be stopped.

As of pLog 1.0, plugins can also register new filters dynamically via the PluginBase::registerFilter(), which
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.
Pipeline( $httpRequest, $blogInfo = null )   X-Ref
Constructor

param: httpRequest The HTTP request
param: blogInfo The BlogInfo object with information about the blog

_registerDefaultFilters()   X-Ref
Method that takes care of registering the default filters used in the pipeline.

More can be added anytime by using the registerFilter() method.
return: Always true

registerFilter( $filterClass )   X-Ref
Static method that registers a filter externally

param: filterClass A class that implements the PipelineFilter interface
return: Always returns true.

process()   X-Ref
Processes the pipeline, using the request and blogInfo
objects as given in the constructor.




Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics