diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-13 23:23:11 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-13 23:23:11 +0200 |
commit | 5fb94bf76f199a4dc713fe6e37e683d1d908e972 (patch) | |
tree | 7d2e456d6618c0674556ba8089b1a047df090f6f /lib/public/contacts.php | |
parent | 401bc60981f3a5da967ee7aa26662b46f0502aa0 (diff) | |
parent | 37ba6f503abfdd0f24ac515d1c71aa4a705a211f (diff) | |
download | nextcloud-server-5fb94bf76f199a4dc713fe6e37e683d1d908e972.tar.gz nextcloud-server-5fb94bf76f199a4dc713fe6e37e683d1d908e972.zip |
Merge pull request #8542 from owncloud/phpdoc-improvements
PHPDoc Improvements
Diffstat (limited to 'lib/public/contacts.php')
-rw-r--r-- | lib/public/contacts.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/public/contacts.php b/lib/public/contacts.php index 1b61d7aa4ff..fb88c13bd1b 100644 --- a/lib/public/contacts.php +++ b/lib/public/contacts.php @@ -87,7 +87,7 @@ namespace OCP { * @param string $pattern which should match within the $searchProperties * @param array $searchProperties defines the properties within the query pattern should match * @param array $options - for future use. One should always have options! - * @return array of contacts which are arrays of key-value-pairs + * @return array an array of contacts which are arrays of key-value-pairs */ public static function search($pattern, $searchProperties = array(), $options = array()) { $cm = \OC::$server->getContactsManager(); @@ -98,7 +98,7 @@ namespace OCP { * This function can be used to delete the contact identified by the given id * * @param object $id the unique identifier to a contact - * @param $address_book_key + * @param string $address_book_key * @return bool successful or not */ public static function delete($id, $address_book_key) { @@ -111,12 +111,12 @@ namespace OCP { * Otherwise the contact will be updated by replacing the entire data set. * * @param array $properties this array if key-value-pairs defines a contact - * @param $address_book_key string to identify the address book in which the contact shall be created or updated - * @return array representing the contact just created or updated + * @param string $address_book_key identifier of the address book in which the contact shall be created or updated + * @return array an array representing the contact just created or updated */ public static function createOrUpdate($properties, $address_book_key) { $cm = \OC::$server->getContactsManager(); - return $cm->search($properties, $address_book_key); + return $cm->createOrUpdate($properties, $address_book_key); } /** |