ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
sspmod_statistics_Statistics_FieldPresentation_Entity Class Reference
+ Inheritance diagram for sspmod_statistics_Statistics_FieldPresentation_Entity:
+ Collaboration diagram for sspmod_statistics_Statistics_FieldPresentation_Entity:

Public Member Functions

 getPresentation ()
 
- Public Member Functions inherited from sspmod_statistics_Statistics_FieldPresentation_Base
 __construct ($fields, $config, $template)
 
 getPresentation ()
 

Additional Inherited Members

- Protected Attributes inherited from sspmod_statistics_Statistics_FieldPresentation_Base
 $fields
 
 $template
 
 $config
 

Detailed Description

Definition at line 3 of file Entity.php.

Member Function Documentation

◆ getPresentation()

sspmod_statistics_Statistics_FieldPresentation_Entity::getPresentation ( )

Definition at line 5 of file Entity.php.

References $metadata, fields, and SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler().

6  {
8  $metadata = $mh->getList($this->config);
9 
10  $translation = array('_' => 'All services');
11  foreach ($this->fields as $field) {
12  if (array_key_exists($field, $metadata)) {
13  if (array_key_exists('name', $metadata[$field])) {
14  $translation[$field] = $this->template->t($metadata[$field]['name'], array(), false);
15  }
16  }
17  }
18  return $translation;
19  }
static getMetadataHandler()
This function retrieves the current instance of the metadata handler.
$metadata['__DYNAMIC:1__']
$errors fields
Definition: imgupload.php:51
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: