4include_once(
"Services/Mail/classes/class.ilPDMailBlockGUI.php");
23 parent::__construct();
25 $this->
setTitle($this->lng->txt(
"show_system_messages"));
27 $this->mail_mode =
"system";
28 $this->allow_moving =
false;
53 $html = parent::getHTML();
55 if (count($this->mails) == 0) {
69 $inbox = $mbox->getInboxFolder();
71 $this->mails = $umail->getMailsOfFolder(
$inbox, array(
'status' =>
'unread',
'type' =>
'system'));
79 return '<div class="small">' . ((int) count($this->mails)) .
" " . $this->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.
Mail Box class Base class for creating and handling mail boxes.
BlockGUI class for Personal Desktop Mail block.
BlockGUI class for System Messages block on personal desktop.
getOverview()
Get overview.
__construct()
Constructor.
isRepositoryObject()
Returns whether block has a corresponding repository object.bool
getHTML()
Handle config status.