13 foreach (
$sets AS $setkey => $set) {
20 $expireAfter = $set->getInteger(
'expireAfter', NULL);
21 if ($expireAfter !== NULL) {
29 # Get global black/whitelists 34 $available_types =
array(
39 'attributeauthority-remote' 41 $set_types = $set->getArrayize(
'types', $available_types);
43 foreach($set->getArray(
'sources') AS
$source) {
52 # Merge global and src specific blacklists 53 if(isset(
$source[
'blacklist'])) {
54 $source[
'blacklist'] = array_unique(array_merge(
$source[
'blacklist'], $blacklist));
56 $source[
'blacklist'] = $blacklist;
59 # Merge global and src specific whitelists 60 if(isset(
$source[
'whitelist'])) {
61 $source[
'whitelist'] = array_unique(array_merge(
$source[
'whitelist'], $whitelist));
63 $source[
'whitelist'] = $whitelist;
73 $outputFormat = $set->getValueValidate(
'outputFormat',
array(
'flatfile',
'serialize'),
'flatfile');
74 switch ($outputFormat) {
static requireAdmin()
Require admin access to the current page.
static setCaptureLog($val=true)
foreach($sets AS $setkey=> $set) $logentries
static getCapturedLog()
Get the captured log.
Create styles array
The data for the language used.
static fromException(Exception $e)
Convert any exception into a SimpleSAML_Error_Exception.
static getOptionalConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.