summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-07-19 18:03:37 +0200
committerGitHub <noreply@github.com>2019-07-19 18:03:37 +0200
commita085a88205ccf833c347c1b0a5021ca2ee8db484 (patch)
treeec1389dea6c027f3c90513576cad579ba0c37892 /lib
parentc00d6f4eac9075e651fbef791f4e7c7157cad709 (diff)
parent2c5ebac458f899af190d2ef7bf8702624e700049 (diff)
downloadnextcloud-server-a085a88205ccf833c347c1b0a5021ca2ee8db484.tar.gz
nextcloud-server-a085a88205ccf833c347c1b0a5021ca2ee8db484.zip
Merge pull request #14954 from tacruc/searchPatterns
Allow to search for real pattern in contacts
Diffstat (limited to 'lib')
-rw-r--r--lib/private/ContactsManager.php3
-rw-r--r--lib/public/Contacts/IManager.php3
2 files changed, 4 insertions, 2 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()) {
diff --git a/lib/public/Contacts/IManager.php b/lib/public/Contacts/IManager.php
index e744a92d9e2..84948a929c0 100644
--- a/lib/public/Contacts/IManager.php
+++ b/lib/public/Contacts/IManager.php
@@ -90,7 +90,8 @@ interface IManager {
*
* @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
* @since 6.0.0
*/