Changeset View
Changeset View
Standalone View
Standalone View
plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Lines | public function __construct($imap_folder = null) | ||||
$this->readonly = false; | $this->readonly = false; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
$this->action = rcube::get_instance()->action; | $this->action = rcube::get_instance()->action; | ||||
} | } | ||||
/** | /** | ||||
* Getter for the address book name to be displayed | * Getter for the address book name to be displayed | ||||
* | * | ||||
* @return string Name of this address book | * @return string Name of this address book | ||||
*/ | */ | ||||
public function get_name() | public function get_name() | ||||
{ | { | ||||
$folder = kolab_storage::object_name($this->imap_folder, $this->namespace); | return $this->storagefolder->get_name(); | ||||
return $folder; | |||||
} | } | ||||
/** | /** | ||||
* Wrapper for kolab_storage_folder::get_foldername() | * Wrapper for kolab_storage_folder::get_foldername() | ||||
*/ | */ | ||||
public function get_foldername() | public function get_foldername() | ||||
{ | { | ||||
return $this->storagefolder->get_foldername(); | return $this->storagefolder->get_foldername(); | ||||
} | } | ||||
/** | /** | ||||
* Getter for the IMAP folder name | * Getter for the IMAP folder name | ||||
* | * | ||||
* @return string Name of the IMAP folder | * @return string Name of the IMAP folder | ||||
*/ | */ | ||||
public function get_realname() | public function get_realname() | ||||
{ | { | ||||
return $this->imap_folder; | return $this->imap_folder; | ||||
} | } | ||||
/** | /** | ||||
* Getter for the name of the namespace to which the IMAP folder belongs | * Getter for the name of the namespace to which the IMAP folder belongs | ||||
* | * | ||||
* @return string Name of the namespace (personal, other, shared) | * @return string Name of the namespace (personal, other, shared) | ||||
*/ | */ | ||||
public function get_namespace() | public function get_namespace() | ||||
{ | { | ||||
if ($this->namespace === null && $this->ready) { | if ($this->namespace === null && $this->ready) { | ||||
▲ Show 20 Lines • Show All 1,115 Lines • Show Last 20 Lines |