PluginProbe
User Access Manager / 2.1.11
User Access Manager v2.1.11
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | src/View/UserGroups/UserGroupEditForm.php +23 -13 trunk → 2.1.11 View file →
@@ -1,11 +1,22 @@
1 1 <?php
2 2 /**
3 - * @var UserGroupController $controller
3 + * UserGroupEditForm.php
4 + *
5 + * Shows the user group edit form at the admin panel.
6 + *
7 + * PHP versions 5
8 + *
9 + * @author Alexander Schneider <[email protected]>
10 + * @copyright 2008-2017 Alexander Schneider
11 + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2
12 + * @version SVN: $id$
13 + * @link http://wordpress.org/extend/plugins/user-access-manager/
4 14 */
5 15
6 -use UserAccessManager\Controller\Backend\Administration\UserGroupController;
7 -use UserAccessManager\Object\ObjectHandler;
16 +/**
17 + * @var \UserAccessManager\Controller\Backend\UserGroupController $controller
18 + */
8 19
9 20 $userGroup = $controller->getUserGroup();
10 21 ?>
11 22 <form method="post" action="<?php echo $controller->getRequestUrl(); ?>">
@@ -23,11 +34,11 @@
23 34 <tbody>
24 35 <tr class="form-field form-required">
25 36 <th valign="top"><label for="userGroupName"><?php echo TXT_UAM_GROUP_NAME; ?></label></th>
26 37 <td>
27 - <input size="40" type="text" value="<?php echo htmlentities($userGroup->getName() ?? ''); ?>"
38 + <input size="40" value="<?php echo htmlentities($userGroup->getName()); ?>"
28 39 id="userGroupName" name="userGroupName"/><br/>
29 - <p class="description"><?php echo TXT_UAM_GROUP_NAME_DESC; ?></p>
40 + <?php echo TXT_UAM_GROUP_NAME_DESC; ?>
30 41 </td>
31 42 </tr>
32 43 <tr class="form-field form-required">
33 44 <th valign="top"><label for="userGroupDescription"><?php echo TXT_UAM_GROUP_DESC; ?></label>
@@ -32,18 +43,18 @@
32 43 <tr class="form-field form-required">
33 44 <th valign="top"><label for="userGroupDescription"><?php echo TXT_UAM_GROUP_DESC; ?></label>
34 45 </th>
35 46 <td>
36 - <input size="40" type="text" value="<?php echo htmlentities($userGroup->getDescription() ?? ''); ?>"
47 + <input size="40" value="<?php echo htmlentities($userGroup->getDescription()); ?>"
37 48 id="userGroupDescription" name="userGroupDescription"/><br/>
38 - <p class="description"><?php echo TXT_UAM_GROUP_DESC_DESC; ?></p>
49 + <?php echo TXT_UAM_GROUP_DESC_DESC; ?>
39 50 </td>
40 51 </tr>
41 52 <tr class="form-field form-required">
42 53 <th valign="top"><label for="ipRange"><?php echo TXT_UAM_GROUP_IP_RANGE; ?></label></th>
43 - <td><input size="40" type="text" value="<?php echo htmlentities($userGroup->getIpRange() ?? ''); ?>"
54 + <td><input size="40" value="<?php echo htmlentities($userGroup->getIpRange()); ?>"
44 55 id="ipRange" name="ipRange"/><br/>
45 - <p class="description"><?php echo TXT_UAM_GROUP_IP_RANGE_DESC; ?></p>
56 + <?php echo TXT_UAM_GROUP_IP_RANGE_DESC; ?>
46 57 </td>
47 58 </tr>
48 59 <tr class="form-field form-required">
49 60 <th valign="top"><label for="readAccess"><?php echo TXT_UAM_GROUP_READ_ACCESS; ?></label>
@@ -68,9 +79,9 @@
68 79 >
69 80 <?php echo TXT_UAM_ALL_USERS ?>
70 81 </option>
71 82 </select><br/>
72 - <p class="description"><?php echo TXT_UAM_GROUP_READ_ACCESS_DESC; ?></p>
83 + <?php echo TXT_UAM_GROUP_READ_ACCESS_DESC; ?>
73 84 </td>
74 85 </tr>
75 86 <tr class="form-field form-required">
76 87 <th valign="top"><label for="writeAccess"><?php echo TXT_UAM_GROUP_WRITE_ACCESS; ?></label>
@@ -104,9 +115,9 @@
104 115 >
105 116 <?php echo TXT_UAM_ALL_USERS ?>
106 117 </option>
107 118 </select><br/>
108 - <p class="description"><?php echo TXT_UAM_GROUP_WRITE_ACCESS_DESC; ?></p>
119 + <?php echo TXT_UAM_GROUP_WRITE_ACCESS_DESC; ?>
109 120 </td>
110 121 </tr>
111 122 <tr>
112 123 <th valign="top"><?php echo TXT_UAM_GROUP_ROLE; ?></th>
@@ -113,9 +124,9 @@
113 124 <td>
114 125 <ul class='uam_role'>
115 126 <?php
116 127 $groupRoles = $userGroup->getAssignedObjectsByType(
117 - ObjectHandler::GENERAL_ROLE_OBJECT_TYPE
128 + \UserAccessManager\Object\ObjectHandler::GENERAL_ROLE_OBJECT_TYPE
118 129 );
119 130 $roleNames = $controller->getRoleNames();
120 131
121 132 foreach ($roleNames as $role => $name) {
@@ -137,9 +148,8 @@
137 148 }
138 149 }
139 150 ?>
140 151 </ul>
141 - <p class="description"><?php echo TXT_UAM_GROUP_ROLE_DESC; ?></p>
142 152 </td>
143 153 </tr>
144 154 </tbody>
145 155 </table>