]> source.dussan.org Git - nextcloud-server.git/commitdiff
[contacts_api] update documentation
authorThomas Mueller <thomas.mueller@tmit.eu>
Thu, 6 Dec 2012 22:51:35 +0000 (23:51 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Thu, 6 Dec 2012 22:51:35 +0000 (23:51 +0100)
lib/public/contacts.php

index 6842f40f1b3aff8129c8bb16dd7f257e8db4c7d9..ca0b15b2c7847912bf0a60c8a2ea7360ba46739c 100644 (file)
@@ -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);
        }