コード例 #1
0
ファイル: InstructorGroup.php プロジェクト: stopfstedt/ilios
 /**
  * @param LearnerGroupInterface $learnerGroup
  */
 public function removeLearnerGroup(LearnerGroupInterface $learnerGroup)
 {
     if ($this->learnerGroups->contains($learnerGroup)) {
         $this->learnerGroups->removeElement($learnerGroup);
         $learnerGroup->removeInstructorGroup($this);
     }
 }
コード例 #2
0
ファイル: LearnerGroup.php プロジェクト: stopfstedt/ilios
 /**
  * @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);
     }
 }