mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-19 08:52:22 +01:00
Change name of the backend
This commit is contained in:
parent
7b440cb68c
commit
1fa0004492
@ -56,7 +56,7 @@ class App {
|
|||||||
'ldap' => 'OCA\Contacts\Backend\Ldap',
|
'ldap' => 'OCA\Contacts\Backend\Ldap',
|
||||||
'local' => 'OCA\Contacts\Backend\Database',
|
'local' => 'OCA\Contacts\Backend\Database',
|
||||||
'shared' => 'OCA\Contacts\Backend\Shared',
|
'shared' => 'OCA\Contacts\Backend\Shared',
|
||||||
'owncloudusers' => 'OCA\Contacts\Backend\OwnCloudUsers',
|
'localusers' => 'OCA\Contacts\Backend\LocalUsers',
|
||||||
);
|
);
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
|
@ -34,9 +34,9 @@ use OCA\Contacts\Contact,
|
|||||||
* Every user has *1* personal addressbook. The id of this addresbook is the
|
* Every user has *1* personal addressbook. The id of this addresbook is the
|
||||||
* userid of the owner.
|
* userid of the owner.
|
||||||
*/
|
*/
|
||||||
class OwnCloudUsers extends AbstractBackend {
|
class LocalUsers extends AbstractBackend {
|
||||||
|
|
||||||
public $name = 'OwnCloudUsers';
|
public $name = 'localusers';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The table that holds the address books.
|
* The table that holds the address books.
|
||||||
@ -70,8 +70,8 @@ class OwnCloudUsers extends AbstractBackend {
|
|||||||
public function getAddressBook($addressBookId, array $options = array()) {
|
public function getAddressBook($addressBookId, array $options = array()) {
|
||||||
$addressbook = array(
|
$addressbook = array(
|
||||||
"id" => $addressBookId,
|
"id" => $addressBookId,
|
||||||
"displayname" => 'ownCloudUsers',
|
"displayname" => 'Local Users',
|
||||||
"description" => 'ownCloud Users',
|
"description" => 'Local Users',
|
||||||
"ctag" => time(),
|
"ctag" => time(),
|
||||||
"permissions" => \OCP\PERMISSION_READ,
|
"permissions" => \OCP\PERMISSION_READ,
|
||||||
"backend" => $this->name,
|
"backend" => $this->name,
|
Loading…
x
Reference in New Issue
Block a user