Пример #1
0
 /**
  *
  * @access public
  * @param \Map2u\ForumBundle\Component\Dispatcher\Event\ModeratorTopicEvent $event
  */
 public function onTopicRestoreComplete(ModeratorTopicEvent $event)
 {
     $this->updateBoardStats($this->extractBoardFromTopic($event->getTopic()));
 }
Пример #2
0
 /**
  *
  * @access public
  * @param \Map2u\ForumBundle\Component\Dispatcher\Event\ModeratorTopicEvent $event
  */
 public function onTopicReopenComplete(ModeratorTopicEvent $event)
 {
     if ($event->getTopic()) {
         if ($event->getTopic()->getId()) {
             $this->session->getFlashBag()->add('success', 'Successfully reopened topic "' . $event->getTopic()->getId() . '"');
         }
     }
 }