Esempio n. 1
0
 public function actionMarkUnread($threads, $params)
 {
     $result = array();
     $user = $this->getUser();
     foreach ($threads as $t) {
         NewMessages::markThreadAsUnreadByUser($t, $user);
         $result[] = array('result' => 'Success', 'action' => 'markunread', 'id' => $t->id(), 'title' => $t->title()->getPrefixedText());
     }
     $this->getResult()->setIndexedTagName($result, 'thread');
     $this->getResult()->addValue(null, 'threadaction', $result);
 }