case 'display':
return $this->nonimap
- ? $this->_mbox['l']
- : IMP::displayFolder($this->_mbox['v']);
+ ? $this->label
+ : IMP::displayFolder($this->value);
case 'editvfolder':
return ($this->vfolder &&
- $GLOBALS['injector']->getInstance('IMP_Search')->isEditableVFolder($this->_mbox['v']));
+ $GLOBALS['injector']->getInstance('IMP_Search')->isEditableVFolder($this->value));
case 'is_open':
return $this->_treeob->isOpen($this->_mbox);
return $this->_mbox['c'];
case 'mbox_val':
- return htmlspecialchars($this->_mbox['v']);
+ return htmlspecialchars($this->value);
case 'name':
- return htmlspecialchars($this->_mbox['l']);
+ return htmlspecialchars($this->label);
case 'nonimap':
return $this->_treeob->isNonImapElt($this->_mbox);
$info->unseen = 0;
try {
- if ($msgs_info = $GLOBALS['injector']->getInstance('IMP_Imap')->getOb()->status($this->_mbox['v'], Horde_Imap_Client::STATUS_RECENT | Horde_Imap_Client::STATUS_UNSEEN | Horde_Imap_Client::STATUS_MESSAGES)) {
+ if ($msgs_info = $GLOBALS['injector']->getInstance('IMP_Imap')->getOb()->status($this->value, Horde_Imap_Client::STATUS_RECENT | Horde_Imap_Client::STATUS_UNSEEN | Horde_Imap_Client::STATUS_MESSAGES)) {
if (!empty($msgs_info['recent'])) {
$info->recent = intval($msgs_info['recent']);
}
case 'special':
$this->_initCache();
- switch ($this->_mbox['v']) {
+ switch ($this->value) {
case 'INBOX':
case $this->_eltCache['draft']:
case $this->_eltCache['spam']:
return (!$GLOBALS['prefs']->getValue('use_vtrash'));
default:
- return in_array($this->_mbox['v'], $this->_eltCache['sent']);
+ return in_array($this->value, $this->_eltCache['sent']);
}
return false;
return false;
}
$imp_search = $GLOBALS['injector']->getInstance('IMP_Search');
- return ($imp_search->isVTrashFolder($this->_mbox['v']) ||
- $imp_search->isVINBOXFolder($this->_mbox['v']));
+ return ($imp_search->isVTrashFolder($this->value) ||
+ $imp_search->isVINBOXFolder($this->value));
case 'sub':
return $this->_treeob->isSubscribed($this->_mbox);