summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-11-13 20:59:47 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2012-11-13 20:59:47 +0100
commit33a4dfa08742a5d93374d1258ea122a7914a2e11 (patch)
tree5eb1ca7444fad1d256995f20b290242ef456b8f1
parentc3825112a0fcbc8793c1b952f912fc1d60e9bc05 (diff)
downloadnextcloud-server-33a4dfa08742a5d93374d1258ea122a7914a2e11.tar.gz
nextcloud-server-33a4dfa08742a5d93374d1258ea122a7914a2e11.zip
function isEnabled() added
-rw-r--r--lib/public/contacts.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/public/contacts.php b/lib/public/contacts.php
index cfa8d0ace47..5762fd28e02 100644
--- a/lib/public/contacts.php
+++ b/lib/public/contacts.php
@@ -56,7 +56,7 @@ class Contacts
* @param array $options - for future use. One should always have options!
* @return array of contacts which are arrays of key-value-pairs
*/
- static function search($pattern, $searchProperties = array(), $options = array()) {
+ public static function search($pattern, $searchProperties = array(), $options = array()) {
// dummy results
return array(
@@ -71,7 +71,7 @@ class Contacts
* @param object $id the unique identifier to a contact
* @return bool successful or not
*/
- static function delete($id) {
+ public static function delete($id) {
return false;
}
@@ -82,7 +82,7 @@ class Contacts
* @param array $properties this array if key-value-pairs defines a contact
* @return array representing the contact just created or updated
*/
- static function createOrUpdate($properties) {
+ public static function createOrUpdate($properties) {
// dummy
return array('id' => 0, 'FN' => 'Thomas Müller', 'EMAIL' => 'a@b.c',
@@ -90,4 +90,14 @@ class Contacts
'ADR' => ';;123 Main Street;Any Town;CA;91921-1234'
);
}
+
+ /**
+ * Check if contacts are available (e.g. contacts app enabled)
+ *
+ * @return bool true if enabled, false if not
+ */
+ public static function isEnabled() {
+ return false;
+ }
+
}