ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
hook_metadata_hosted.php File Reference

Go to the source code of this file.

Functions

 saml_hook_metadata_hosted (&$metadataHosted)
 Hook to add the metadata for hosted entities to the frontpage. More...
 

Function Documentation

◆ saml_hook_metadata_hosted()

saml_hook_metadata_hosted ( $metadataHosted)

Hook to add the metadata for hosted entities to the frontpage.

Parameters
array&$metadataHostedThe metadata links for hosted metadata on the frontpage.

Definition at line 8 of file hook_metadata_hosted.php.

References $metadata, $metadataHosted, $name, $source, array, and SimpleSAML_Auth_Source\getSourcesOfType().

8  {
9  assert('is_array($metadataHosted)');
10 
11  $sources = SimpleSAML_Auth_Source::getSourcesOfType('saml:SP');
12 
13  foreach ($sources as $source) {
14 
15  $metadata = $source->getMetadata();
16 
17  $name = $metadata->getValue('name', NULL);
18  if ($name === NULL) {
19  $name = $metadata->getValue('OrganizationDisplayName', NULL);
20  }
21  if ($name === NULL) {
22  $name = $source->getAuthID();
23  }
24 
25  $md = array(
26  'entityid' => $source->getEntityId(),
27  'metadata-index' => $source->getEntityId(),
28  'metadata-set' => 'saml20-sp-hosted',
29  'metadata-url' => $source->getMetadataURL() . '?output=xhtml',
30  'name' => $name,
31  );
32 
33  $metadataHosted[] = $md;
34  }
35 
36 }
$metadata['__DYNAMIC:1__']
if($format !==null) $name
Definition: metadata.php:146
Create styles array
The data for the language used.
$source
Definition: linkback.php:22
static getSourcesOfType($type)
Get sources of a specific type.
Definition: Source.php:52
+ Here is the call graph for this function: