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