コード例 #1
0
ファイル: LearningMaterial.php プロジェクト: stopfstedt/ilios
 /**
  * @param CourseLearningMaterialInterface $courseLearningMaterial
  */
 public function removeCourseLearningMaterial(CourseLearningMaterialInterface $courseLearningMaterial)
 {
     $this->courseLearningMaterials->removeElement($courseLearningMaterial);
 }
コード例 #2
0
ファイル: Course.php プロジェクト: stopfstedt/ilios
 /**
  * @inheritdoc
  */
 public function removeLearningMaterial(CourseLearningMaterialInterface $learningMaterial)
 {
     if ($this->learningMaterials->contains($learningMaterial)) {
         $this->learningMaterials->removeElement($learningMaterial);
     }
 }
コード例 #3
0
ファイル: MeshDescriptor.php プロジェクト: stopfstedt/ilios
 /**
  * @param CourseLearningMaterialInterface $courseLearningMaterial
  */
 public function removeCourseLearningMaterial(CourseLearningMaterialInterface $courseLearningMaterial)
 {
     if ($this->courseLearningMaterials->contains($courseLearningMaterial)) {
         $this->courseLearningMaterials->removeElement($courseLearningMaterial);
         $courseLearningMaterial->removeMeshDescriptor($this);
     }
 }