Exercise: Fix class definition conflict only in parkur by importing part of commit a627bd47b2 -refs BT#19485

pull/4128/head
NicoDucou 4 years ago
parent df3b654274
commit dfc2a7be5e
  1. 20
      main/exercise/HotSpotDelineation.php
  2. 51
      main/exercise/hotspot.class.php

@ -0,0 +1,20 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Class HotSpotDelineation.
*/
class HotSpotDelineation extends HotSpot
{
public $typePicture = 'hotspot-delineation.png';
public $explanationLangVar = 'HotspotDelineation';
/**
* HotSpotDelineation constructor.
*/
public function __construct()
{
parent::__construct();
$this->type = HOT_SPOT_DELINEATION;
}
}

@ -14,8 +14,8 @@
*/
class HotSpot extends Question
{
public static $typePicture = 'hotspot.png';
public static $explanationLangVar = 'HotSpot';
public $typePicture = 'hotspot.png';
public $explanationLangVar = 'HotSpot';
/**
* HotSpot constructor.
@ -105,50 +105,3 @@ class HotSpot extends Question
// nothing
}
}
/**
* Class HotSpotDelineation.
*/
class HotSpotDelineation extends HotSpot
{
public static $typePicture = 'hotspot-delineation.png';
public static $explanationLangVar = 'HotspotDelineation';
/**
* HotSpotDelineation constructor.
*/
public function __construct()
{
parent::__construct();
$this->type = HOT_SPOT_DELINEATION;
}
/**
* {@inheritdoc}
*/
public function createForm(&$form, $exercise)
{
parent::createForm($form, $exercise);
}
/**
* {@inheritdoc}
*/
public function processCreation($form, $exercise)
{
parent::processCreation($form, $exercise);
}
public function createAnswersForm($form)
{
parent::createAnswersForm($form);
}
/**
* {@inheritdoc}
*/
public function processAnswersCreation($form, $exercise)
{
parent::processAnswersCreation($form, $exercise);
}
}

Loading…
Cancel
Save