getList() public method

This function lists all known metadata in the given set. It is returned as an associative array where the key is the entity id.
public getList ( string $set = 'saml20-idp-remote' ) : array
$set string The set we want to list metadata from.
return array An associative array with the metadata from from the given set.
Esempio n. 1
0
 /**
  * Retrieve the list of IdPs which are stored in the metadata.
  *
  * @return array An array with entityid => metadata mappings.
  */
 protected function getIdPList()
 {
     $idpList = array();
     foreach ($this->metadataSets as $metadataSet) {
         $newList = $this->metadata->getList($metadataSet);
         /*
          * Note that we merge the entities in reverse order. This ensures that it is the entity in the first
          * metadata set that "wins" if two metadata sets have the same entity.
          */
         $idpList = array_merge($newList, $idpList);
     }
     return $idpList;
 }