add empty methods updatePrincipal and searchPrincipals and change method getPrincipalByPath to work with sabredav 1.6

This commit is contained in:
Georg Ehrke 2012-02-25 16:26:47 +01:00
parent cc15852386
commit 0d2f1688e4

View file

@ -90,7 +90,7 @@ class OC_Connector_Sabre_Principal implements Sabre_DAVACL_IPrincipalBackend {
* @return array
*/
public function getPrincipalByPath($path) {
list($prefix,$name) = Sabre_DAV_URLUtil::splitPath($path);
list($prefix,$name) = explode('/', $path);
if ($prefix == 'principals' && OC_User::userExists($name)) {
return array(
@ -159,4 +159,6 @@ class OC_Connector_Sabre_Principal implements Sabre_DAVACL_IPrincipalBackend {
public function setGroupMemberSet($principal, array $members) {
throw new Sabre_DAV_Exception('Setting members of the group is not supported yet');
}
function updatePrincipal($path, $mutations){return 0;}
function searchPrincipals($prefixPath, array $searchProperties){return 0;}
}