You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
729 lines
14 KiB
729 lines
14 KiB
<?php
|
|
|
|
namespace Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
|
|
/**
|
|
* TrackExercise
|
|
*
|
|
* @ORM\Table(name="track_e_exercices")
|
|
* @ORM\Entity(repositoryClass="Entity\Repository\TrackExerciseRepository")
|
|
*/
|
|
class TrackExercise
|
|
{
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="exe_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue(strategy="IDENTITY")
|
|
*/
|
|
private $exeId;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="exe_user_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
|
|
*/
|
|
private $exeUserId;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="exe_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $exeDate;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="exe_exo_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $exeExoId;
|
|
|
|
/**
|
|
* @var float
|
|
*
|
|
* @ORM\Column(name="exe_result", type="float", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $exeResult;
|
|
|
|
/**
|
|
* @var float
|
|
*
|
|
* @ORM\Column(name="exe_weighting", type="float", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $exeWeighting;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $cId;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="status", type="string", length=20, precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $status;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="data_tracking", type="text", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $dataTracking;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="start_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $startDate;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="steps_counter", type="smallint", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $stepsCounter;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="session_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $sessionId;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="orig_lp_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $origLpId;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="orig_lp_item_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $origLpItemId;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="exe_duration", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $exeDuration;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="expired_time_control", type="datetime", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $expiredTimeControl;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="orig_lp_item_view_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $origLpItemViewId;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="questions_to_check", type="text", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $questionsToCheck;
|
|
|
|
/**
|
|
* @var float
|
|
*
|
|
* @ORM\Column(name="jury_score", type="float", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $juryScore;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="jury_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $juryId;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="quiz_distribution_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $quizDistributionId;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="CQuiz")
|
|
* @ORM\JoinColumn(name="exe_exo_id", referencedColumnName="iid")
|
|
*/
|
|
private $exercise;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Jury")
|
|
* @ORM\JoinColumn(name="exe_exo_id", referencedColumnName="exercise_id")
|
|
*/
|
|
private $attempt;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="User")
|
|
* @ORM\JoinColumn(name="exe_user_id", referencedColumnName="user_id")
|
|
*/
|
|
private $user;
|
|
|
|
/**
|
|
* @ORM\OneToMany(targetEntity="TrackExerciseAttemptJury", mappedBy="attempt")
|
|
**/
|
|
private $juryAttempts;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="CQuizDistribution")
|
|
* @ORM\JoinColumn(name="quiz_distribution_id", referencedColumnName="id")
|
|
*/
|
|
private $distribution;
|
|
|
|
/**
|
|
* @ORM\OneToMany(targetEntity="TrackAttempt", mappedBy="attempt")
|
|
**/
|
|
private $questionAttempts;
|
|
|
|
/**
|
|
* @return ArrayCollection
|
|
*/
|
|
public function getQuestionAttempts()
|
|
{
|
|
return $this->questionAttempts;
|
|
}
|
|
|
|
/**
|
|
* @return \Entity\CQuizDistribution
|
|
*/
|
|
public function getDistribution()
|
|
{
|
|
return $this->distribution;
|
|
}
|
|
|
|
public function getAttempt()
|
|
{
|
|
return $this->attempt;
|
|
}
|
|
|
|
public function getUser()
|
|
{
|
|
return $this->user;
|
|
}
|
|
|
|
public function getExercise()
|
|
{
|
|
return $this->exercise;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getJuryAttempts()
|
|
{
|
|
return $this->juryAttempts;
|
|
}
|
|
|
|
/**
|
|
* Get exeId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getExeId()
|
|
{
|
|
return $this->exeId;
|
|
}
|
|
|
|
/**
|
|
* Set exeUserId
|
|
*
|
|
* @param integer $exeUserId
|
|
* @return TrackExercise
|
|
*/
|
|
public function setExeUserId($exeUserId)
|
|
{
|
|
$this->exeUserId = $exeUserId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get exeUserId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getExeUserId()
|
|
{
|
|
return $this->exeUserId;
|
|
}
|
|
|
|
/**
|
|
* Set exeDate
|
|
*
|
|
* @param \DateTime $exeDate
|
|
* @return TrackExercise
|
|
*/
|
|
public function setExeDate($exeDate)
|
|
{
|
|
$this->exeDate = $exeDate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get exeDate
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getExeDate()
|
|
{
|
|
return $this->exeDate;
|
|
}
|
|
|
|
/**
|
|
* Set exeExoId
|
|
*
|
|
* @param integer $exeExoId
|
|
* @return TrackExercise
|
|
*/
|
|
public function setExeExoId($exeExoId)
|
|
{
|
|
$this->exeExoId = $exeExoId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get exeExoId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getExeExoId()
|
|
{
|
|
return $this->exeExoId;
|
|
}
|
|
|
|
/**
|
|
* Set exeResult
|
|
*
|
|
* @param float $exeResult
|
|
* @return TrackExercise
|
|
*/
|
|
public function setExeResult($exeResult)
|
|
{
|
|
$this->exeResult = $exeResult;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get exeResult
|
|
*
|
|
* @return float
|
|
*/
|
|
public function getExeResult()
|
|
{
|
|
return $this->exeResult;
|
|
}
|
|
|
|
/**
|
|
* Set exeWeighting
|
|
*
|
|
* @param float $exeWeighting
|
|
* @return TrackExercise
|
|
*/
|
|
public function setExeWeighting($exeWeighting)
|
|
{
|
|
$this->exeWeighting = $exeWeighting;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get exeWeighting
|
|
*
|
|
* @return float
|
|
*/
|
|
public function getExeWeighting()
|
|
{
|
|
return $this->exeWeighting;
|
|
}
|
|
|
|
/**
|
|
* Set cId
|
|
*
|
|
* @param integer $cId
|
|
* @return TrackExercise
|
|
*/
|
|
public function setCId($cId)
|
|
{
|
|
$this->cId = $cId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get cId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getCId()
|
|
{
|
|
return $this->cId;
|
|
}
|
|
|
|
/**
|
|
* Set status
|
|
*
|
|
* @param string $status
|
|
* @return TrackExercise
|
|
*/
|
|
public function setStatus($status)
|
|
{
|
|
$this->status = $status;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get status
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getStatus()
|
|
{
|
|
return $this->status;
|
|
}
|
|
|
|
/**
|
|
* Set dataTracking
|
|
*
|
|
* @param string $dataTracking
|
|
* @return TrackExercise
|
|
*/
|
|
public function setDataTracking($dataTracking)
|
|
{
|
|
$this->dataTracking = $dataTracking;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get dataTracking
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getDataTracking()
|
|
{
|
|
return $this->dataTracking;
|
|
}
|
|
|
|
/**
|
|
* Set startDate
|
|
*
|
|
* @param \DateTime $startDate
|
|
* @return TrackExercise
|
|
*/
|
|
public function setStartDate($startDate)
|
|
{
|
|
$this->startDate = $startDate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get startDate
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getStartDate()
|
|
{
|
|
return $this->startDate;
|
|
}
|
|
|
|
/**
|
|
* Set stepsCounter
|
|
*
|
|
* @param integer $stepsCounter
|
|
* @return TrackExercise
|
|
*/
|
|
public function setStepsCounter($stepsCounter)
|
|
{
|
|
$this->stepsCounter = $stepsCounter;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get stepsCounter
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getStepsCounter()
|
|
{
|
|
return $this->stepsCounter;
|
|
}
|
|
|
|
/**
|
|
* Set sessionId
|
|
*
|
|
* @param integer $sessionId
|
|
* @return TrackExercise
|
|
*/
|
|
public function setSessionId($sessionId)
|
|
{
|
|
$this->sessionId = $sessionId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get sessionId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getSessionId()
|
|
{
|
|
return $this->sessionId;
|
|
}
|
|
|
|
/**
|
|
* Set origLpId
|
|
*
|
|
* @param integer $origLpId
|
|
* @return TrackExercise
|
|
*/
|
|
public function setOrigLpId($origLpId)
|
|
{
|
|
$this->origLpId = $origLpId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get origLpId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getOrigLpId()
|
|
{
|
|
return $this->origLpId;
|
|
}
|
|
|
|
/**
|
|
* Set origLpItemId
|
|
*
|
|
* @param integer $origLpItemId
|
|
* @return TrackExercise
|
|
*/
|
|
public function setOrigLpItemId($origLpItemId)
|
|
{
|
|
$this->origLpItemId = $origLpItemId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get origLpItemId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getOrigLpItemId()
|
|
{
|
|
return $this->origLpItemId;
|
|
}
|
|
|
|
/**
|
|
* Set exeDuration
|
|
*
|
|
* @param integer $exeDuration
|
|
* @return TrackExercise
|
|
*/
|
|
public function setExeDuration($exeDuration)
|
|
{
|
|
$this->exeDuration = $exeDuration;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get exeDuration
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getExeDuration()
|
|
{
|
|
return $this->exeDuration;
|
|
}
|
|
|
|
/**
|
|
* Set expiredTimeControl
|
|
*
|
|
* @param \DateTime $expiredTimeControl
|
|
* @return TrackExercise
|
|
*/
|
|
public function setExpiredTimeControl($expiredTimeControl)
|
|
{
|
|
$this->expiredTimeControl = $expiredTimeControl;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get expiredTimeControl
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getExpiredTimeControl()
|
|
{
|
|
return $this->expiredTimeControl;
|
|
}
|
|
|
|
/**
|
|
* Set origLpItemViewId
|
|
*
|
|
* @param integer $origLpItemViewId
|
|
* @return TrackExercise
|
|
*/
|
|
public function setOrigLpItemViewId($origLpItemViewId)
|
|
{
|
|
$this->origLpItemViewId = $origLpItemViewId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get origLpItemViewId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getOrigLpItemViewId()
|
|
{
|
|
return $this->origLpItemViewId;
|
|
}
|
|
|
|
/**
|
|
* Set questionsToCheck
|
|
*
|
|
* @param string $questionsToCheck
|
|
* @return TrackExercise
|
|
*/
|
|
public function setQuestionsToCheck($questionsToCheck)
|
|
{
|
|
$this->questionsToCheck = $questionsToCheck;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get questionsToCheck
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getQuestionsToCheck()
|
|
{
|
|
return $this->questionsToCheck;
|
|
}
|
|
|
|
/**
|
|
* Get juryScore
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getJuryScore()
|
|
{
|
|
return $this->juryScore;
|
|
}
|
|
|
|
/**
|
|
* Set juryScore
|
|
*
|
|
* @param integer $juryScore
|
|
* @return TrackExercise
|
|
*/
|
|
public function setJuryScore($juryScore)
|
|
{
|
|
$this->juryScore = $juryScore;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get juryId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getJuryId()
|
|
{
|
|
return $this->juryId;
|
|
}
|
|
|
|
/**
|
|
* Set juryId
|
|
*
|
|
* @param integer $juryId
|
|
* @return TrackExercise
|
|
*/
|
|
public function setJuryId($juryId)
|
|
{
|
|
$this->juryId = $juryId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get juryMembers
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getJuryMembers()
|
|
{
|
|
return $this->juryMembers;
|
|
}
|
|
|
|
/**
|
|
* Set juryMembers
|
|
*
|
|
* @param JuryMembers $juryMembers
|
|
* @return TrackExercise
|
|
*/
|
|
public function setJuryMembers(JuryMembers $juryMembers)
|
|
{
|
|
$this->juryMembers = $juryMembers;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Set quizDistributionId
|
|
*
|
|
* @param integer $quizDistributionId
|
|
*/
|
|
public function setQuizDistributionId($quizDistributionId)
|
|
{
|
|
$this->quizDistributionId = $quizDistributionId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get quizDistributionId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getQuizDistributionId()
|
|
{
|
|
return $this->quizDistributionId;
|
|
}
|
|
}
|
|
|