core/source/overwrites/principal_backend.php

95 lines
1.4 KiB
PHP
Raw Normal View History

2025-09-09 12:07:53 +02:00
<?php
2025-09-16 12:05:35 +02:00
namespace davina\overwrites;
2025-09-09 12:07:53 +02:00
require_once('vendor/autoload.php');
/**
*/
class class_principle_backend
implements \Sabre\DAVACL\PrincipalBackend\BackendInterface
{
/**
*/
public function getPrincipalsByPrefix($prefixPath)
{
throw (new \Exception('not implemented: getPrincipalsByPrefix'));
/*
return [
[
'uri' => 'principals/dummy',
]
];
*/
}
/**
*/
public function getPrincipalByPath(
$path
)
{
// throw (new \Exception('not implemented: getPrincipalByPath'));
$parts = \explode('/', $path);
$username = $parts[1];
return [
'uri' => $path,
'displayname' => $username,
];
}
/**
*/
public function updatePrincipal($path, \Sabre\DAV\PropPatch $propPatch)
{
throw (new \Exception('not implemented: updatePrincipal'));
}
/**
*/
public function searchPrincipals($prefixPath, array $searchProperties, $test = 'allof')
{
throw (new \Exception('not implemented: searchPrincipals'));
}
/**
*/
public function findByUri($uri, $principalPrefix)
{
throw (new \Exception('not implemented: findByUri'));
}
/**
*/
public function getGroupMemberSet($principal)
{
throw (new \Exception('not implemented: getGroupMemberSet'));
}
/**
*/
public function getGroupMembership($principal)
{
return [];
}
/**
*/
public function setGroupMemberSet($principal, array $members)
{
throw (new \Exception('not implemented: setGroupMemberSet'));
}
}
?>