ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AbstractBackend.php
Go to the documentation of this file.
1 <?php
2 
4 
16 abstract class AbstractBackend implements BackendInterface {
17 
35  function findByUri($uri, $principalPrefix) {
36 
37  // Note that the default implementation here is a bit slow and could
38  // likely be optimized.
39  if (substr($uri, 0, 7) !== 'mailto:') {
40  return;
41  }
42  $result = $this->searchPrincipals(
43  $principalPrefix,
44  ['{http://sabredav.org/ns}email-address' => substr($uri, 7)]
45  );
46 
47  if ($result) {
48  return $result[0];
49  }
50 
51  }
52 
53 }
$result
searchPrincipals($prefixPath, array $searchProperties, $test='allof')
This method is used to search for principals matching a set of properties.
findByUri($uri, $principalPrefix)
Finds a principal by its URI.
Implement this interface to create your own principal backends.