phpPoA2
[ class tree: phpPoA2 ] [ index: phpPoA2 ] [ all elements ]

Procedural File: QueryFilterAuthzEngine.php

Source Location: /lib/authz/QueryFilterAuthzEngine.php



Classes:

QueryFilterAuthzEngine
Authorization engine that works by checking the query string of the request.


Page Details:



Tags:

author:  Jaime Perez <jaime.perez@rediris.es>
version:  2.0
copyright:  

Copyright 2005-2010 RedIRIS, http://www.rediris.es/

This file is part of phpPoA2.

phpPoA2 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 3 of the License, or (at your option) any later version.

phpPoA2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with phpPoA2. If not, see <http://www.gnu.org/licenses/>.

filesource:  Source Code for this file
license:  GNU General Public License







QUERY_BEFORE_FILTERS [line 37]

QUERY_BEFORE_FILTERS = "QUERY_BEFORE_FILTERS"
This hook is executed right after retrieving the current URI, the params (both GET and POST) and the arrays of allowed and denied patterns that will be checked inmediately.

It can be used to alter parameters and the URL, and also to configure the filters on runtime. The hook receives the URI string, an array of parameters, the allowed and the denied patterns. Functions for this hook must be defined like this:

function queryBeforeFilterHook(&$uri, &$params, &$allowed, &$denied);

Please bear in mind that hooks must return TRUE or they'll keep other hooks from executing.



[ Top ]




Documentation generated on Wed, 13 Oct 2010 15:06:24 +0200 by phpDocumentor 1.4.3