public function __construct($label, $key) { parent::__construct($label, $key); $template = OW::getPluginManager()->getPlugin('BASE')->getCmpViewDir() . 'console_dropdown_list.html'; $this->setTemplate($template); $this->list = new BASE_CMP_ConsoleList($this->getKey()); }
public function __construct() { parent::__construct(OW::getLanguage()->text('mailbox', 'messages_console_title'), 'mailbox'); $template = OW::getPluginManager()->getPlugin('BASE')->getCmpViewDir() . 'console_dropdown_list.html'; $this->setTemplate($template); $this->list = new MAILBOX_CMP_ConsoleList($this->getKey()); $this->addClass('ow_mailbox_items_list'); $modeList = MAILBOX_BOL_ConversationService::getInstance()->getActiveModeList(); $singleMode = count($modeList) == 1; if ($singleMode) { $this->addClass('ow_mailbox_single_mode'); } $toolbar = new MAILBOX_CMP_Toolbar(); OW::getDocument()->appendBody($toolbar->render()); }