4include_once(
"Services/Mail/classes/class.ilPDMailBlockGUI.php");
24 parent::__construct();
26 $this->
setTitle($lng->txt(
"show_system_messages"));
28 $this->mail_mode =
"system";
29 $this->allow_moving =
false;
59 $html = parent::getHTML();
61 if (count($this->mails) == 0)
80 $mbox =
new ilMailBox(
$GLOBALS[
'DIC'][
'ilUser']->getId());
81 $inbox = $mbox->getInboxFolder();
84 $this->mails = $umail->getMailsOfFolder($inbox, array(
'status' =>
'unread',
'type' =>
'system'));
94 return '<div class="small">'.((int) count($this->mails)).
" ".
$lng->txt(
"system_message").
"</div>";
An exception for terminatinating execution or to throw for unit testing.
getCurrentDetailLevel()
Get Current Detail Level.
setAvailableDetailLevels($a_max, $a_min=0)
Set Available Detail Levels.
setTitle($a_title)
Set Title.
setCurrentDetailLevel($a_currentdetaillevel)
Set Current Detail Level.
This class handles base functions for mail handling.
BlockGUI class for Personal Desktop Mail block.
BlockGUI class for System Messages block on personal desktop.
getOverview()
Get overview.
__construct()
Constructor.
static isRepositoryObject()
Get block type.
static getBlockType()
Get block type.
getHTML()
Handle config status.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.