Internal: Exercise: Reinstate getIid() and setIid() in CQuizQuestion entity as Twig uses getIid() to access the iid property - refs BT#18452

pull/3947/head
Yannick Warnier 4 years ago
parent b5fb53e9fc
commit b5fb861cf2
  1. 27
      src/Chamilo/CourseBundle/Entity/CQuizQuestion.php

@ -336,6 +336,7 @@ class CQuizQuestion
* @param int $iid
*
* @return CQuizQuestion
* @deprecated Use setIid()
*/
public function setId($iid)
{
@ -348,12 +349,38 @@ class CQuizQuestion
* Get id.
*
* @return int
* @deprecated Use getIid()
*/
public function getId()
{
return $this->iid;
}
/**
* Set id.
*
* @param int $iid
*
* @return CQuizQuestion
*/
public function setIid($iid)
{
$this->iid = $iid;
return $this;
}
/**
* Get id.
* This method is also used by Twig to get the iid property.
*
* @return int
*/
public function getIid()
{
return $this->iid;
}
/**
* Set cId.
*

Loading…
Cancel
Save