diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-12-06 23:51:35 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-12-06 23:51:35 +0100 |
commit | 889e55fdac56ab3eecd6ce65db19e3dfeeff44ea (patch) | |
tree | 382fb17e6dc6865934c302d5d0927cabdc260604 | |
parent | 35e55214e24116a4501260ff4ce94c171404737b (diff) | |
download | nextcloud-server-889e55fdac56ab3eecd6ce65db19e3dfeeff44ea.tar.gz nextcloud-server-889e55fdac56ab3eecd6ce65db19e3dfeeff44ea.zip |
[contacts_api] update documentation
-rw-r--r-- | lib/public/contacts.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/public/contacts.php b/lib/public/contacts.php index 6842f40f1b3..ca0b15b2c78 100644 --- a/lib/public/contacts.php +++ b/lib/public/contacts.php @@ -41,10 +41,10 @@ namespace OC { public function getDisplayName(); /** - * @param $pattern - * @param $searchProperties - * @param $options - * @return mixed + * @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 */ public function search($pattern, $searchProperties, $options); // // dummy results @@ -54,8 +54,8 @@ namespace OC { // ); /** - * @param $properties - * @return mixed + * @param array $properties this array if key-value-pairs defines a contact + * @return array representing the contact just created or updated */ public function createOrUpdate($properties); // // dummy @@ -70,8 +70,8 @@ namespace OC { public function getPermissions(); /** - * @param $id - * @return mixed + * @param object $id the unique identifier to a contact + * @return bool successful or not */ public function delete($id); } |