| @@ -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\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,9 +34,9 @@ | ||
| 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" value="<?php echo htmlentities($userGroup->getName() ?? ''); ?>" | |
| 38 | + <input size="40" value="<?php echo htmlentities($userGroup->getName()); ?>" | |
| 28 | 39 | id="userGroupName" name="userGroupName"/><br/> |
| 29 | 40 | <?php echo TXT_UAM_GROUP_NAME_DESC; ?> |
| 30 | 41 | </td> |
| 31 | 42 | </tr> |
| @@ -32,9 +43,9 @@ | ||
| 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" value="<?php echo htmlentities($userGroup->getDescription() ?? ''); ?>" | |
| 47 | + <input size="40" value="<?php echo htmlentities($userGroup->getDescription()); ?>" | |
| 37 | 48 | id="userGroupDescription" name="userGroupDescription"/><br/> |
| 38 | 49 | <?php echo TXT_UAM_GROUP_DESC_DESC; ?> |
| 39 | 50 | </td> |
| 40 | 51 | </tr> |
| @@ -39,9 +50,9 @@ | ||
| 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" 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 | 56 | <?php echo TXT_UAM_GROUP_IP_RANGE_DESC; ?> |
| 46 | 57 | </td> |
| 47 | 58 | </tr> |
| @@ -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) { |