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

Go to the source code of this file.

Functions

 present_list ($attr)
 Functions used to present a table of attributes and their values. More...
 
 present_assoc ($attr)
 
 present_eptid (\SimpleSAML\Locale\Translate $t, \SAML2\XML\saml\NameID $nameID)
 

Function Documentation

◆ present_assoc()

present_assoc (   $attr)

Definition at line 20 of file attributes.php.

21{
22 if (is_array($attr)) {
23 $str = '<dl>';
24 foreach ($attr as $key => $value) {
25 $str .= "\n".'<dt>'.htmlspecialchars($key).'</dt><dd>'.present_list($value).'</dd>';
26 }
27 $str .= '</dl>';
28 return $str;
29 } else {
30 return htmlspecialchars($attr);
31 }
32}
present_list($attr)
Functions used to present a table of attributes and their values.
Definition: attributes.php:6
$key
Definition: croninfo.php:18

References $key, and present_list().

+ Here is the call graph for this function:

◆ present_eptid()

present_eptid ( \SimpleSAML\Locale\Translate  $t,
\SAML2\XML\saml\NameID  $nameID 
)

Definition at line 34 of file attributes.php.

35{
36 $eptid = array(
37 'NameID' => array($nameID->value),
38 );
39 if (!empty($nameID->Format)) {
40 $eptid[$t->t('{status:subject_format}')] = array($nameID->Format);
41 }
42 if (!empty($nameID->NameQualifier)) {
43 $eptid['NameQualifier'] = array($nameID->NameQualifier);
44 }
45 if (!empty($nameID->SPNameQualifier)) {
46 $eptid['SPNameQualifier'] = array($nameID->SPNameQualifier);
47 }
48 if (!empty($nameID->SPProvidedID)) {
49 $eptid['SPProvidedID'] = array($nameID->SPProvidedID);
50 }
51 return '<td class="attrvalue">'.present_assoc($eptid);
52}

References $t.

◆ present_list()

present_list (   $attr)

Functions used to present a table of attributes and their values.

Definition at line 6 of file attributes.php.

7{
8 if (is_array($attr) && count($attr) > 1) {
9 $str = '<ul>';
10 foreach ($attr as $value) {
11 $str .= '<li>'.htmlspecialchars($attr).'</li>';
12 }
13 $str .= '</ul>';
14 return $str;
15 } else {
16 return htmlspecialchars($attr[0]);
17 }
18}

Referenced by present_assoc().

+ Here is the caller graph for this function: