ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Static Public Member Functions | |
static | getContact ($contact) |
Parse and sanitize a contact from an array. More... | |
static | getDefaultEndpoint (array $endpoints, array $bindings=null) |
Find the default endpoint in an endpoint array. More... | |
static | isHiddenFromDiscovery (array $metadata) |
Determine if an entity should be hidden in the discovery service. More... | |
Static Public Attributes | |
static | $ENTITY_CATEGORY = 'http://macedir.org/entity-category' |
static | $HIDE_FROM_DISCOVERY = 'http://refeds.org/category/hide-from-discovery' |
static | $VALID_CONTACT_OPTIONS |
static | $VALID_CONTACT_TYPES |
Definition at line 10 of file Metadata.php.
|
static |
Parse and sanitize a contact from an array.
Accepts an array with the following elements:
The following values are allowed as "contactType":
If given a "name" it will try to decompose it into its given name and surname, only if neither givenName nor surName are present. It works as follows:
otherwise it will just return the name as "givenName" in the resulting array.
array | $contact | The contact to parse and sanitize. |
InvalidArgumentException If $contact is neither an array nor null, or the contact does not conform to valid configuration rules for contacts.
Definition at line 101 of file Metadata.php.
References $t, and SimpleSAML\Utils\Config\Metadata\$VALID_CONTACT_TYPES.
|
static |
Find the default endpoint in an endpoint array.
array | $endpoints | An array with endpoints. |
array | $bindings | An array with acceptable bindings. Can be null if any binding is allowed. |
Definition at line 221 of file Metadata.php.
References $bindings.
Referenced by SimpleSAML_Configuration\getDefaultEndpoint(), and SimpleSAML\Module\saml\Auth\Process\FilterScopes\process().
|
static |
Determine if an entity should be hidden in the discovery service.
This method searches for the "Hide From Discovery" REFEDS Entity Category, and tells if the entity should be hidden or not depending on it.
array | $metadata | An associative array with the metadata representing an entity. |
Definition at line 275 of file Metadata.php.
References $metadata, SimpleSAML\Logger\maskErrors(), and SimpleSAML\Logger\popErrorMask().
|
static |
Definition at line 18 of file Metadata.php.
|
static |
Definition at line 26 of file Metadata.php.
|
static |
Definition at line 39 of file Metadata.php.
|
static |
Definition at line 54 of file Metadata.php.
Referenced by SimpleSAML\Utils\Config\Metadata\getContact().