1
0

IGetRealUIDBackend.php 712 B

123456789101112131415161718192021222324252627
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\User\Backend;
  8. /**
  9. * @since 17.0.0
  10. */
  11. interface IGetRealUIDBackend {
  12. /**
  13. * Some backends accept different UIDs than what is the internal UID to be used.
  14. * For example the database backend accepts different cased UIDs in all the functions
  15. * but the internal UID that is to be used should be correctly cased.
  16. *
  17. * This little function makes sure that the used UID will be correct hen using the user object
  18. *
  19. * @since 17.0.0
  20. * @param string $uid
  21. * @return string
  22. */
  23. public function getRealUID(string $uid): string;
  24. }