Small cleanup

This commit is contained in:
Aleksander Machniak 2022-10-16 14:22:59 +02:00
parent c8f9065471
commit 1193d65f57
5 changed files with 7 additions and 18 deletions

View file

@ -944,7 +944,7 @@ class kolab_storage
* Wrapper for rcube_imap::list_folders_subscribed()
* with support for temporarily subscribed folders
*/
protected static function _imap_list_subscribed($root, $mbox, $filter = null)
protected static function _imap_list_subscribed($root, $mbox)
{
$folders = self::$imap->list_folders_subscribed($root, $mbox);

View file

@ -325,7 +325,7 @@ class kolab_storage_dav
public function folder_type($folder)
{
// TODO: Used by kolab_folders, kolab_activesync, kolab_delegation
return 'event';
return '';
}
/**

View file

@ -3,11 +3,9 @@
/**
* Kolab storage cache class providing a local caching layer for Kolab groupware objects.
*
* @author Thomas Bruederli <bruederli@kolabsys.com>
* @author Aleksander Machniak <machniak@apheleia-it.ch>
*
* Copyright (C) 2012-2013, Kolab Systems AG <contact@kolabsys.com>
* Copyright (C) 2022, Apheleia IT AG <contact@apheleia-it.ch>
* Copyright (C) 2012-2022, Apheleia IT AG <contact@apheleia-it.ch>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@ -493,14 +491,6 @@ class kolab_storage_dav_cache extends kolab_storage_cache
}
}
/**
* Check DAV connection error state
*/
protected function check_error()
{
// TODO ?
}
/**
* Write records into cache using extended inserts to reduce the number of queries to be executed
*

View file

@ -3,9 +3,9 @@
/**
* Kolab storage cache class for calendar event objects
*
* @author Thomas Bruederli <bruederli@kolabsys.com>
* @author Aleksander Machniak <machniak@apheleia-it.ch>
*
* Copyright (C) 2013, Kolab Systems AG <contact@kolabsys.com>
* Copyright (C) 2013-2022 Apheleia IT AG <contact@apheleia-it.ch>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as

View file

@ -133,7 +133,7 @@ class kolab_storage_dav_folder extends kolab_storage_folder
return $this->resource_uri;
}
// compose fully qualified ressource uri for this instance
// compose fully qualified resource uri for this instance
$host = preg_replace('|^https?://|', 'dav://' . urlencode($this->get_owner(true)) . '@', $this->dav->url);
$path = $this->href[0] == '/' ? $this->href : "/{$this->href}";
@ -276,8 +276,7 @@ class kolab_storage_dav_folder extends kolab_storage_folder
}
// TODO: This method is used by kolab_addressbook plugin only
$this->cache->purge();
// $this->cache->purge();
return false;
}