9if (!array_key_exists(
'entityid', $_REQUEST)) {
 
   10    throw new Exception(
'required parameter [entityid] missing');
 
   12if (!array_key_exists(
'set', $_REQUEST)) {
 
   13    throw new Exception(
'required parameter [set] missing');
 
   17    array(
'saml20-idp-remote', 
'saml20-sp-remote', 
'shib13-idp-remote', 
'shib13-sp-remote'),
 
   20    throw new Exception(
'Invalid set');
 
   25$m = 
$metadata->getMetadata($_REQUEST[
'entityid'], $_REQUEST[
'set']);
 
   28$t->data[
'clipboard.js'] = 
true;
 
   29$t->data[
'pageid'] = 
'show_metadata';
 
   30$t->data[
'header'] = 
'SimpleSAMLphp Show Metadata';
 
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 requireAdmin()
Require admin access to the current page.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static getSessionFromRequest()
Retrieves the current session.