[ 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/net/ -> linkformatmatcher.class.php (sommaire)

(pas de description)

Poids: 61 lignes (2 kb)
Inclus ou requis:0 fois
Référencé: 2 fois
Nécessite: 0 fichiers

Définit 1 class

LinkFormatMatcher:: (3 méthodes):
  LinkFormatMatcher()
  identify()
  getParameters()


Classe: LinkFormatMatcher  - X-Ref

\ingroup Net

Identifies the right kind of url, based on the format of our links. This class is only taken
into use when custom urls are enabled, and it basically loops through all provided regular expressions
and a given HTTP request to check which one of them is the matching one. The matching engine (converting
from *_link_format format to a valid regexp) is provided by the LinkParser class.

Once ready, it will call the LinkFormatMatcher::getParameters() to retrieve the right parameters
for the request (the core does not understand this kind of requests, and this class acts as some sort
of a filter that parses an incoming nicer link, gets the information based on a regexp and puts it back to
the request in a more "normal" format)

Users or plugin developers should never need to use this class directly.

LinkFormatMatcher( $request, $formats )   X-Ref

param: request
param: formats

identify()   X-Ref

return:

getParameters()   X-Ref
Pas de description



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