コード例 #1
0
ファイル: Forum.php プロジェクト: steffmeister/typo3-forum
 /**
  * Removes a child forum.
  *
  * @param Forum $child The Forum to be removed
  *
  * @return void
  */
 public function removeChild(Forum $child)
 {
     $this->children->detach($child);
 }
コード例 #2
0
 /**
  * Unsubscribes this user from a subscribeable object.
  *
  * @param SubscribeableInterface $object The object that is to be unsubscribed.
  *
  * @return void
  */
 public function removeSubscription(SubscribeableInterface $object)
 {
     if ($object instanceof Topic) {
         $this->topicSubscriptions->detach($object);
     } elseif ($object instanceof Forum) {
         $this->forumSubscriptions->detach($object);
     }
 }