예제 #1
0
 /**
  * Marks this topic as read by a certain user.
  *
  * @param FrontendUser $supporter The user who read this topic.
  * @return void
  */
 public function addSupporter(FrontendUser $supporter)
 {
     $this->setHelpfulCount($this->getHelpfulCount() + 1);
     $this->supporters->attach($supporter);
 }
예제 #2
0
 /**
  * Add a user to this tag
  *
  * @param $feuser FrontendUser
  */
 public function addFeuser(FrontendUser $feuser)
 {
     $this->feuser->attach($feuser);
 }
예제 #3
0
 /**
  * Marks this forum as read by a certain user.
  *
  * @param FrontendUser $reader The user who read this forum.
  *
  * @return void
  */
 public function addReader(FrontendUser $reader)
 {
     $this->readers->attach($reader);
 }
예제 #4
0
 /**
  * Adds a new subscriber.
  *
  * @param \Mittwald\Typo3Forum\Domain\Model\User\FrontendUser $user The new subscriber.
  *
  * @return void
  */
 public function addSubscriber(\Mittwald\Typo3Forum\Domain\Model\User\FrontendUser $user)
 {
     $this->subscribers->attach($user);
 }