4 include_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;
39 return self::$block_type;
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>";
getOverview()
Get overview.
__construct()
Constructor.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
BlockGUI class for Personal Desktop Mail block.
BlockGUI class for System Messages block on personal desktop.
static getBlockType()
Get block type.
static isRepositoryObject()
Get block type.
setTitle($a_title)
Set Title.
This class handles base functions for mail handling.
setAvailableDetailLevels($a_max, $a_min=0)
Set Available Detail Levels.
Create styles array
The data for the language used.
setCurrentDetailLevel($a_currentdetaillevel)
Set Current Detail Level.
getCurrentDetailLevel()
Get Current Detail Level.