diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-22 11:10:44 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-22 11:10:44 +0200 |
commit | 404080abb418009fd3bdaacd091fecda70c06472 (patch) | |
tree | cdf4f723c6600bada7c0a7e6b174cb79f44931d4 | |
parent | 3997856d767ac1f9a94fb5c84ab20d527834b233 (diff) | |
download | nextcloud-server-404080abb418009fd3bdaacd091fecda70c06472.tar.gz nextcloud-server-404080abb418009fd3bdaacd091fecda70c06472.zip |
More imports
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/ContactsManager.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/private/ContactsManager.php b/lib/private/ContactsManager.php index c79d9e01af9..999b6597978 100644 --- a/lib/private/ContactsManager.php +++ b/lib/private/ContactsManager.php @@ -31,9 +31,11 @@ namespace OC; +use OCP\Constants; +use OCP\Contacts\IManager; use OCP\IAddressBook; -class ContactsManager implements \OCP\Contacts\IManager { +class ContactsManager implements IManager { /** * This function is used to search and find contacts within the users address books. @@ -76,7 +78,7 @@ class ContactsManager implements \OCP\Contacts\IManager { return null; } - if ($addressBook->getPermissions() & \OCP\Constants::PERMISSION_DELETE) { + if ($addressBook->getPermissions() & Constants::PERMISSION_DELETE) { return $addressBook->delete($id); } @@ -97,7 +99,7 @@ class ContactsManager implements \OCP\Contacts\IManager { return null; } - if ($addressBook->getPermissions() & \OCP\Constants::PERMISSION_CREATE) { + if ($addressBook->getPermissions() & Constants::PERMISSION_CREATE) { return $addressBook->createOrUpdate($properties); } @@ -131,7 +133,7 @@ class ContactsManager implements \OCP\Contacts\IManager { * Return a list of the user's addressbooks display names * ! The addressBook displayName are not unique, please use getUserAddressBooks * - * @return array + * @return IAddressBook[] * @since 6.0.0 * @deprecated 16.0.0 - Use `$this->getUserAddressBooks()` instead */ |