Example #1
0
 /**
  * Display module content
  *
  * @return  void
  */
 public function display()
 {
     $database = \App::get('db');
     $this->moduleclass = $this->params->get('moduleclass');
     $this->limit = intval($this->params->get('limit', 10));
     // Find the user's most recent support tickets
     $recipient = new Recipient($database);
     $this->rows = $recipient->getUnreadMessages(User::get('id'), $this->limit);
     $this->total = count($recipient->getUnreadMessages(User::get('id')));
     if ($recipient->getError()) {
         $this->setError($recipient->getError());
     }
     require $this->getLayoutPath();
 }