42                parent::__construct(
$config, $reserved);
 
   56                        $this->regex = 
$config[
'regex'];
 
   64                                throw new Exception(
'Filter Authorize: Attribute values is neither string nor array: ' . var_export($attribute, TRUE));
 
   66                                if(!is_string($value)) {
 
   67                                        throw new Exception(
'Filter Authorize: Each value should be a string for attribute: ' . var_export($attribute, TRUE) . 
' value: ' . var_export($value, TRUE) . 
' Config is: ' . var_export(
$config, TRUE));
 
   70                        $this->valid_attribute_values[$attribute] = 
$values;
 
   83                assert(array_key_exists(
'Attributes', 
$request));
 
   87                foreach ($this->valid_attribute_values as 
$name => $patterns) {
 
   89                                foreach ($patterns as $pattern){
 
   95                                                        $matched = preg_match($pattern, $value);
 
   97                                                        $matched = ($value == $pattern);
 
  100                                                        $authorize = ($this->deny ? FALSE : TRUE);
 
  128                        'authorize:Authorize');
 
  130                        'authorize/authorize_403.php');
 
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
static saveState(&$state, $stage, $rawId=false)
Save the state.
unauthorized(&$request)
When the process logic determines that the user is not authorized for this service,...
__construct($config, $reserved)
Initialize this filter.
$valid_attribute_values
Array of valid users.
process(&$request)
Apply filter to validate attributes.
if(!array_key_exists('StateId', $_REQUEST)) $id
if(array_key_exists('yes', $_REQUEST)) $attributes