-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDisplayExtensions.php
37 lines (35 loc) · 1.14 KB
/
DisplayExtensions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
//Include menu options applicable to all pages of the web site
include("PhpSampleTemplate.php");
?>
<HTML>
<head>
<title>
Administration Page For extensions
</title>
<link rel="stylesheet" type="text/css" href="StyleSheet.css" />
</head>
<BODY>
<h1>
/extensions
</h1>
<a href="CreateExtension.php"><b>Create And Add A New extension</b></a>
<br/><br/>
<table id="directoryObjects">
<tr>
<th>Name</th>
<th>Data Type</th>
<th>Target Objects</th>
</tr>
<?php
$extensions = GraphServiceAccessHelper::getFeed('applications/'.Settings::$appObjectId.'/extensionProperties');
if (isset($extensions))
{
foreach ($extensions as $extension){
echo('<tr><td>'. $extension->{'name'}. '</td><td>'. $extension->{'dataType'} .'</td><td>'. implode(", ", $extension->{'targetObjects'}) .'</td></tr>');
}
}
?>
</table>
</BODY>
</HTML>