예제 #1
0
 /**
  * @param CourseLearningMaterialInterface $courseLearningMaterial
  */
 public function addCourseLearningMaterial(CourseLearningMaterialInterface $courseLearningMaterial)
 {
     $this->courseLearningMaterials->add($courseLearningMaterial);
 }
예제 #2
0
 /**
  * @param CourseLearningMaterialInterface $courseLearningMaterial
  */
 public function removeCourseLearningMaterial(CourseLearningMaterialInterface $courseLearningMaterial)
 {
     $this->courseLearningMaterials->removeElement($courseLearningMaterial);
 }
예제 #3
0
파일: Course.php 프로젝트: stopfstedt/ilios
 /**
  * @inheritdoc
  */
 public function removeLearningMaterial(CourseLearningMaterialInterface $learningMaterial)
 {
     if ($this->learningMaterials->contains($learningMaterial)) {
         $this->learningMaterials->removeElement($learningMaterial);
     }
 }
예제 #4
0
 /**
  * @param CourseLearningMaterialInterface $courseLearningMaterial
  */
 public function removeCourseLearningMaterial(CourseLearningMaterialInterface $courseLearningMaterial)
 {
     if ($this->courseLearningMaterials->contains($courseLearningMaterial)) {
         $this->courseLearningMaterials->removeElement($courseLearningMaterial);
         $courseLearningMaterial->removeMeshDescriptor($this);
     }
 }