231 $DIC[
'ilHelp']->setScreenIdComponent(
"mail");
232 $DIC[
'ilMainMenu']->setActive(
"mail");
234 $this->tpl->getStandardTemplate();
239 $this->ctrl->setParameterByClass(
'ilmailfoldergui',
'mobj_id', $this->currentFolderId);
240 $DIC->tabs()->addTarget(
'fold', $this->ctrl->getLinkTargetByClass(
'ilmailfoldergui'));
241 $this->ctrl->clearParametersByClass(
'ilmailformgui');
243 $this->ctrl->setParameterByClass(
'ilmailformgui',
'type',
'new');
244 $this->ctrl->setParameterByClass(
'ilmailformgui',
'mobj_id', $this->currentFolderId);
245 $DIC->tabs()->addTarget(
'compose', $this->ctrl->getLinkTargetByClass(
'ilmailformgui'));
246 $this->ctrl->clearParametersByClass(
'ilmailformgui');
248 $this->ctrl->setParameterByClass(
'ilcontactgui',
'mobj_id', $this->currentFolderId);
249 $DIC->tabs()->addTarget(
'mail_addressbook', $this->ctrl->getLinkTargetByClass(
'ilcontactgui'));
250 $this->ctrl->clearParametersByClass(
'ilcontactgui');
252 if ($DIC->settings()->get(
'show_mail_settings')) {
253 $this->ctrl->setParameterByClass(
'ilmailoptionsgui',
'mobj_id', $this->currentFolderId);
254 $DIC->tabs()->addTarget(
'options', $this->ctrl->getLinkTargetByClass(
'ilmailoptionsgui'));
255 $this->ctrl->clearParametersByClass(
'ilmailoptionsgui');
258 switch ($this->forwardClass) {
259 case 'ilmailformgui':
260 $DIC->tabs()->setTabActive(
'compose');
264 $DIC->tabs()->setTabActive(
'mail_addressbook');
267 case 'ilmailoptionsgui':
268 $DIC->tabs()->setTabActive(
'options');
271 case 'ilmailfoldergui':
273 $DIC->tabs()->setTabActive(
'fold');
277 if (isset($this->httpRequest->getQueryParams()[
'message_sent'])) {
278 $DIC->tabs()->setTabActive(
'fold');
281 $folderTreeState =
'flat';
283 $folderTreeState =
'tree';
287 $this->ctrl->setParameter($this,
'mail_id', (
int) $this->httpRequest->getQueryParams()[
'mail_id']);
288 $this->ctrl->setParameter($this,
'type',
'redirect_to_read');
290 $this->ctrl->setParameter($this,
'mobj_id', $this->currentFolderId);
291 $this->ctrl->setParameter($this,
'viewmode', $folderTreeState);
292 $this->tpl->setTreeFlatIcon($this->ctrl->getLinkTarget($this), $folderTreeState);
293 $this->ctrl->clearParameters($this);
295 $this->tpl->setCurrentBlock(
'tree_icons');
296 $this->tpl->parseCurrentBlock();
static get($a_var)
Get a value.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static infoPanel($a_keep=true)
isMailDetailCommand(string $cmd)