Beispiel #1
0
 public function Notifications()
 {
     $this->Permission('Garden.SignIn.Allow');
     $Session = Gdn::Session();
     // Drop notification count back to zero.
     $SQL = Gdn::SQL();
     $SQL->Update('User')->Set('CountNotifications', '0')->Where('UserID', $Session->UserID)->Put();
     $ActivityModel = new Gdn_ActivityModel();
     $this->NotificationData = $ActivityModel->GetNotifications($Session->UserID);
     $this->Render();
 }