-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make enhancing entries with type property optional
Signed-off-by: Julius Härtl <[email protected]>
- Loading branch information
1 parent
84e9e58
commit 4786e00
Showing
4 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,16 +55,18 @@ public function getDisplayName(); | |
/** | ||
* @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 Options to define the output format | ||
* - types boolean (since 15.0.0) If set to true, fields that come with a TYPE property will be an array | ||
* example: ['id' => 5, 'FN' => 'Thomas Tanghus', 'EMAIL' => ['type => 'HOME', 'value' => '[email protected]']] | ||
* @return array an array of contacts which are arrays of key-value-pairs | ||
* example result: | ||
* [ | ||
* ['id' => 0, 'FN' => 'Thomas Müller', 'EMAIL' => '[email protected]', 'GEO' => '37.386013;-122.082932'], | ||
* ['id' => 5, 'FN' => 'Thomas Tanghus', 'EMAIL' => ['[email protected]', '[email protected]']] | ||
* ] | ||
* @since 5.0.0 | ||
*/ | ||
public function search($pattern, $searchProperties, $options); | ||
// // dummy results | ||
// return array( | ||
// array('id' => 0, 'FN' => 'Thomas Müller', 'EMAIL' => '[email protected]', 'GEO' => '37.386013;-122.082932'), | ||
// array('id' => 5, 'FN' => 'Thomas Tanghus', 'EMAIL' => array('[email protected]', '[email protected]')), | ||
// ); | ||
|
||
/** | ||
* @param array $properties this array if key-value-pairs defines a contact | ||
|