ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
attributequery.php
Go to the documentation of this file.
1<?php
2$this->includeAtTemplateBase('includes/header.php');
3
4$dataId = $this->data['dataId'];
5assert('is_string($dataId)');
6
7$url = $this->data['url'];
8assert('is_string($url)');
9
10$nameIdFormat = $this->data['nameIdFormat'];
11assert('is_string($nameIdFormat)');
12
13$nameIdValue = $this->data['nameIdValue'];
14assert('is_string($nameIdValue)');
15
16$nameIdQualifier = $this->data['nameIdQualifier'];
17assert('is_string($nameIdQualifier)');
18
19$nameIdSPQualifier = $this->data['nameIdSPQualifier'];
20assert('is_string($nameIdSPQualifier)');
21
22
23$attributes = $this->data['attributes'];
24assert('is_null($attributes) || is_array($attributes)');
25
26
27?>
28
29<h2>Attribute query test</h2>
30
31<p>This is a test page for sending an AttributeQuery message.</p>
32
33<h3>Request</h3>
34
35<form action="?" method="post">
36<input name="dataId" type="hidden" value="<?php echo htmlspecialchars($dataId); ?>" />
37<p>
38<label for="url">URL of attribute query endpoint:</label><br />
39<input name="url" type="text" size="80" value="<?php echo htmlspecialchars($url); ?>" />
40</p>
41<p>
42<label for="nameIdFormat">NameID format:</label><br />
43<input name="nameIdFormat" type="text" size="80" value="<?php echo htmlspecialchars($nameIdFormat); ?>" />
44</p>
45
46<p>
47<label for="nameIdValue">NameID value:</label><br />
48<input name="nameIdValue" type="text" size="80" value="<?php echo htmlspecialchars($nameIdValue); ?>" />
49</p>
50
51<p>
52<label for="nameIdQualifier">NameID NameQualifier (optional):</label><br />
53<input name="nameIdQualifier" type="text" size="80" value="<?php echo htmlspecialchars($nameIdQualifier); ?>" />
54</p>
55
56<p>
57<label for="nameIdSPQualifier">NameID SPNameQualifier (optional):</label><br />
58<input name="nameIdSPQualifier" type="text" size="80" value="<?php echo htmlspecialchars($nameIdSPQualifier); ?>" />
59</p>
60
61<p>
62<button type="submit" name="send" class="btn">Send query</button>
63</p>
64</form>
65
66<?php
67if ($attributes !== NULL) {
68
69 echo('<h3>Attributes received</h3><dl>');
70 foreach ($attributes as $name => $values) {
71 echo('<dt>' . htmlspecialchars($name) . '</dt><dd><ul>');
72 foreach ($values as $value) {
73 echo('<li>' . htmlspecialchars($value) . '</li>');
74 }
75 echo('</dd>');
76 }
77 echo('</dl>');
78}
79?>
80
81<?php $this->includeAtTemplateBase('includes/footer.php');
for( $i=1;$i< 200;$i++)
Holds the type of the event to listen for.
Definition: 04printing.php:58
$nameIdSPQualifier
$dataId
$nameIdValue
$nameIdQualifier
$url
$attributes
$nameIdFormat
PHPExcel root directory.
Definition: PHPExcel.php:30
An exception for terminatinating execution or to throw for unit testing.
if($format !==null) $name
Definition: metadata.php:146
$this data['403_header']