Rename a single ownership key (old → new). */
(string $old, string $new)
| 1048 | |
| 1049 | /** Rename a single ownership key (old → new). */ |
| 1050 | public static function renameOwnerKey(string $old, string $new): void |
| 1051 | { |
| 1052 | $old = trim($old, "/\\ "); |
| 1053 | $new = trim($new, "/\\ "); |
| 1054 | $owners = self::getFolderOwners(); |
| 1055 | if (isset($owners[$old])) { |
| 1056 | $owners[$new] = $owners[$old]; |
| 1057 | unset($owners[$old]); |
| 1058 | self::saveFolderOwners($owners); |
| 1059 | } |
| 1060 | } |
| 1061 | |
| 1062 | /** Remove ownership for a folder and all its descendants. */ |
| 1063 | public static function removeOwnerForTree(string $folder): void |
nothing calls this directly
no test coverage detected