apps/dav/lib/CardDAV/AddressBookImpl.php
/**
	 * @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 an array of contacts which are arrays of key-value-pairs
	 * @since 5.0.0
	 */
@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 an array of contacts which are arrays of key-value-pairs
@since 5.0.0
@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 an array of contacts which are arrays of key - value - pairs @since 5 . 0 . 0
public function search($pattern, $searchProperties, $options) {
		$results = $this->backend->search($this->getKey(), $pattern, $searchProperties);
		$vCards = [];
		foreach ($results as $result) {
			$vCards[] = $this->vCard2Array($result['uri'], $this->readCard($result['carddata']));
		}
		return $vCards;
	}
public function search ( $ pattern , $ searchProperties , $ options ) { $ results = $ this -> backend -> search ( $ this -> getKey ( ) , $ pattern , $ searchProperties ) ; $ vCards = [ ] ; foreach ( $ results as $ result ) { $ vCards [ ] = $ this -> vCard2Array ( $ result [ 'uri' ] , $ this -> readCard ( $ result [ 'carddata' ] ) ) ; } return $ vCards ; }
@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.
@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 .