summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorArne Hamann <kontakt+github@arne.email>2018-01-18 15:08:24 +0530
committerArne Hamann <kontakt+github@arne.email>2019-05-28 10:01:56 +0200
commit2c5ebac458f899af190d2ef7bf8702624e700049 (patch)
tree31540390a12c3f423279db1566b5da3ef6429299 /lib/private
parent633a1981428a1b94626ea6447c9ee305162c01dd (diff)
downloadnextcloud-server-2c5ebac458f899af190d2ef7bf8702624e700049.tar.gz
nextcloud-server-2c5ebac458f899af190d2ef7bf8702624e700049.zip
Allow to search for real pattern in contacts
Added an option escape_like_param to allow wildcards Signed-off-by: Arne Hamann <kontakt+github@arne.email>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/ContactsManager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/ContactsManager.php b/lib/private/ContactsManager.php
index e279997e634..4a36f00de56 100644
--- a/lib/private/ContactsManager.php
+++ b/lib/private/ContactsManager.php
@@ -35,7 +35,8 @@ namespace OC {
*
* @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!
+ * @param array $options = array() to define the search behavior
+ * - 'escape_like_param' - If set to false wildcards _ and % are not escaped
* @return array an array of contacts which are arrays of key-value-pairs
*/
public function search($pattern, $searchProperties = array(), $options = array()) {