Add missing method to subscribe to kolab folders
This commit is contained in:
parent
60f6bbd54e
commit
131b690e3c
1 changed files with 19 additions and 0 deletions
|
@ -197,6 +197,25 @@ class kolab_storage_folder
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Change subscription status of this folder
|
||||
*
|
||||
* @param boolean The desired subscription status: true = subscribed, false = not subscribed
|
||||
* @param string Subscription type (kolab_storage::SERVERSIDE_SUBSCRIPTION or kolab_storage::CLIENTSIDE_SUBSCRIPTION)
|
||||
* @return True on success, false on error
|
||||
*/
|
||||
public function subscribe($subscribed, $type = 0)
|
||||
{
|
||||
if ($type == kolab_storage::SERVERSIDE_SUBSCRIPTION) {
|
||||
return $subscribed ? $this->imap->subscribe($this->name) : $this->imap->unsubscribe($this->name);
|
||||
}
|
||||
else {
|
||||
// TODO: implement this
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get number of objects stored in this folder
|
||||
|
|
Loading…
Add table
Reference in a new issue