PHP Classes

File: DisplayGroups.php

Recommend this page to a friend!
  Classes of Mostafa Abd-El-Hamid   PHP Azure Active Directory   DisplayGroups.php   Download  
File: DisplayGroups.php
Role: Example script
Content type: text/plain
Description: Class source
Class: PHP Azure Active Directory
Manage users and groups of Windows Azure
Author: By
Last change:
Date: 9 years ago
Size: 1,752 bytes


Class file image Download
//Include menu options applicable to all pages of the web site

            Administration Page For Groups

            Administration Page For Groups
        <a href="CreateGroup.php"><b>Create And Add A New Group</b></a>
        <table border="1">
            <th>Display Name</th>
            <th>Mail Enabled</th>
            <th>Edit Link</th>
            <th>Delete Link</th>
= GraphServiceAccessHelper::getFeed('groups');
                foreach (
$groups as $group){
$editLinkValue = "EditGroup.php?id=".$group->objectId;
$deleteLinkValue = "DeleteGroup.php?id=".$group->objectId;
$groupmembersLinkValue = "DisplayMembersOfGroup.php?id=".$group->objectId . '&name='.urlencode($group->{'displayName'});
                    if (
$group->{'mailEnabled'} == 1){
$mailEnabled = 'True';
$mailEnabled = 'False';

'<tr><td><a href='.$groupmembersLinkValue.'>'. $group->{'displayName'}. '</a></td><td>'. $group->{'description'}
'</td><td>'.$mailEnabled.'</td><td>' .'<a href=\''.$editLinkValue.'\'>'. 'Edit Group' . '</a></td><td>'
.'<a href=\''.$deleteLinkValue.'\'>'. 'Delete Group' . '</a></td></tr>');