4 include_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;
36 return self::$block_type;
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>";
getOverview()
Get overview.
__construct()
Constructor.
BlockGUI class for Personal Desktop Mail block.
BlockGUI class for System Messages block on personal desktop.
setTitle($a_title)
Set Title.
Mail Box class Base class for creating and handling mail boxes.
setAvailableDetailLevels($a_max, $a_min=0)
Set Available Detail Levels.
getMailsOfFolder($a_folder_id, $filter=array())
setCurrentDetailLevel($a_currentdetaillevel)
Set Current Detail Level.
getCurrentDetailLevel()
Get Current Detail Level.