示例#1
0
 /**
  * @param LearnerGroupInterface $learnerGroup
  */
 public function removeLearnerGroup(LearnerGroupInterface $learnerGroup)
 {
     if ($this->learnerGroups->contains($learnerGroup)) {
         $this->learnerGroups->removeElement($learnerGroup);
         $learnerGroup->removeInstructorGroup($this);
     }
 }
示例#2
0
 /**
  * @param LearnerGroupInterface $child
  */
 public function addChild(LearnerGroupInterface $child)
 {
     if (!$this->children->contains($child)) {
         $this->children->add($child);
     }
 }
示例#3
0
文件: User.php 项目: stopfstedt/ilios
 /**
  * @param LearnerGroupInterface $instructedLearnerGroup
  */
 public function addInstructedLearnerGroup(LearnerGroupInterface $instructedLearnerGroup)
 {
     if (!$this->instructedLearnerGroups->contains($instructedLearnerGroup)) {
         $this->instructedLearnerGroups->add($instructedLearnerGroup);
         $instructedLearnerGroup->addInstructor($this);
     }
 }