| @@ -1,21 +1,46 @@ | ||
| 1 | 1 | <?php |
| 2 | - | |
| 3 | -declare(strict_types=1); | |
| 4 | - | |
| 2 | +/** | |
| 3 | + * DatabaseUpdate6.php | |
| 4 | + * | |
| 5 | + * The DatabaseUpdate6 class file. | |
| 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/ | |
| 14 | + */ | |
| 5 | 15 | namespace UserAccessManager\Setup\Update; |
| 6 | 16 | |
| 7 | 17 | use UserAccessManager\Setup\Database\DatabaseUpdate; |
| 8 | 18 | use UserAccessManager\UserGroup\UserGroup; |
| 9 | 19 | |
| 20 | +/** | |
| 21 | + * Class DatabaseUpdate6 | |
| 22 | + * | |
| 23 | + * @package UserAccessManager\Setup\Update | |
| 24 | + */ | |
| 10 | 25 | class DatabaseUpdate6 extends DatabaseUpdate |
| 11 | 26 | { |
| 12 | - public function getVersion(): string | |
| 27 | + /** | |
| 28 | + * Returns the version. | |
| 29 | + * | |
| 30 | + * @return string | |
| 31 | + */ | |
| 32 | + public function getVersion() | |
| 13 | 33 | { |
| 14 | 34 | return '1.6.1'; |
| 15 | 35 | } |
| 16 | 36 | |
| 17 | - public function update(): bool | |
| 37 | + /** | |
| 38 | + * Executes the update. | |
| 39 | + * | |
| 40 | + * @return bool | |
| 41 | + */ | |
| 42 | + public function update() | |
| 18 | 43 | { |
| 19 | 44 | $dbAccessGroupToObject = $this->database->getUserGroupToObjectTable(); |
| 20 | 45 | |
| 21 | 46 | $dbGroupTypeColumn = $this->database->getVariable( |