public function _addNotifications()
 {
     $parser = new TBGTextParser($this->_log);
     $parser->setOption('plain', true);
     $parser->doParse();
     foreach ($parser->getMentions() as $user) {
         if (!$this->getAuthor() || $user->getID() == $this->getAuthor()) {
             continue;
         }
         $notification = new TBGNotification();
         $notification->setTarget($this);
         $notification->setTriggeredByUser($this->getAuthor());
         $notification->setUser($user);
         $notification->setNotificationType(TBGVCSIntegration::NOTIFICATION_COMMIT_MENTIONED);
         $notification->setModuleName('vcs_integration');
         $notification->save();
     }
 }
 protected function _retrieveLinksAndCategoriesFromContent($options = array())
 {
     $parser = new TBGTextParser(html_entity_decode($this->_content));
     $options['no_code_highlighting'] = true;
     $parser->doParse($options);
     return array($parser->getInternalLinks(), $parser->getCategories());
 }