%PDF- %PDF-
| Direktori : /home/tjamichg/cursos.tjamich.gob.mx/src/Chamilo/CourseBundle/Entity/ |
| Current File : /home/tjamichg/cursos.tjamich.gob.mx/src/Chamilo/CourseBundle/Entity/CLpItemView.php |
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CourseBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* CLpItemView.
*
* @ORM\Table(
* name="c_lp_item_view",
* indexes={
* @ORM\Index(name="course", columns={"c_id"}),
* @ORM\Index(name="lp_item_id", columns={"lp_item_id"}),
* @ORM\Index(name="lp_view_id", columns={"lp_view_id"}),
* @ORM\Index(name="idx_c_lp_item_view_cid_lp_view_id_lp_item_id", columns={"c_id", "lp_view_id", "lp_item_id"})
* }
* )
* @ORM\Entity
*/
class CLpItemView
{
/**
* @var int
*
* @ORM\Column(name="iid", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
protected $iid;
/**
* @var int
*
* @ORM\Column(name="c_id", type="integer")
*/
protected $cId;
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=true)
*/
protected $id;
/**
* @var int
*
* @ORM\Column(name="lp_item_id", type="integer", nullable=false)
*/
protected $lpItemId;
/**
* @var int
*
* @ORM\Column(name="lp_view_id", type="integer", nullable=false)
*/
protected $lpViewId;
/**
* @var int
*
* @ORM\Column(name="view_count", type="integer", nullable=false)
*/
protected $viewCount;
/**
* @var int
*
* @ORM\Column(name="start_time", type="integer", nullable=false)
*/
protected $startTime;
/**
* @var int
*
* @ORM\Column(name="total_time", type="integer", nullable=false)
*/
protected $totalTime;
/**
* @var float
*
* @ORM\Column(name="score", type="float", precision=10, scale=0, nullable=false)
*/
protected $score;
/**
* @var string
*
* @ORM\Column(name="status", type="string", length=32, nullable=false, options={"default":"not attempted"})
*/
protected $status;
/**
* @var string
*
* @ORM\Column(name="suspend_data", type="text", nullable=true)
*/
protected $suspendData;
/**
* @var string
*
* @ORM\Column(name="lesson_location", type="text", nullable=true)
*/
protected $lessonLocation;
/**
* @var string
*
* @ORM\Column(name="core_exit", type="string", length=32, nullable=false, options={"default":"none"})
*/
protected $coreExit;
/**
* @var string
*
* @ORM\Column(name="max_score", type="string", length=8, nullable=true)
*/
protected $maxScore;
/**
* CLpItemView constructor.
*/
public function __construct()
{
$this->status = 'not attempted';
$this->coreExit = 'none';
}
/**
* Set lpItemId.
*
* @param int $lpItemId
*
* @return CLpItemView
*/
public function setLpItemId($lpItemId)
{
$this->lpItemId = $lpItemId;
return $this;
}
/**
* Get lpItemId.
*
* @return int
*/
public function getLpItemId()
{
return $this->lpItemId;
}
/**
* Set lpViewId.
*
* @param int $lpViewId
*
* @return CLpItemView
*/
public function setLpViewId($lpViewId)
{
$this->lpViewId = $lpViewId;
return $this;
}
/**
* Get lpViewId.
*
* @return int
*/
public function getLpViewId()
{
return $this->lpViewId;
}
/**
* Set viewCount.
*
* @param int $viewCount
*
* @return CLpItemView
*/
public function setViewCount($viewCount)
{
$this->viewCount = $viewCount;
return $this;
}
/**
* Get viewCount.
*
* @return int
*/
public function getViewCount()
{
return $this->viewCount;
}
/**
* Set startTime.
*
* @param int $startTime
*
* @return CLpItemView
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
return $this;
}
/**
* Get startTime.
*
* @return int
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Set totalTime.
*
* @param int $totalTime
*
* @return CLpItemView
*/
public function setTotalTime($totalTime)
{
$this->totalTime = $totalTime;
return $this;
}
/**
* Get totalTime.
*
* @return int
*/
public function getTotalTime()
{
return $this->totalTime;
}
/**
* Set score.
*
* @param float $score
*
* @return CLpItemView
*/
public function setScore($score)
{
$this->score = $score;
return $this;
}
/**
* Get score.
*
* @return float
*/
public function getScore()
{
return $this->score;
}
/**
* Set status.
*
* @param string $status
*
* @return CLpItemView
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Get status.
*
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Set suspendData.
*
* @param string $suspendData
*
* @return CLpItemView
*/
public function setSuspendData($suspendData)
{
$this->suspendData = $suspendData;
return $this;
}
/**
* Get suspendData.
*
* @return string
*/
public function getSuspendData()
{
return $this->suspendData;
}
/**
* Set lessonLocation.
*
* @param string $lessonLocation
*
* @return CLpItemView
*/
public function setLessonLocation($lessonLocation)
{
$this->lessonLocation = $lessonLocation;
return $this;
}
/**
* Get lessonLocation.
*
* @return string
*/
public function getLessonLocation()
{
return $this->lessonLocation;
}
/**
* Set coreExit.
*
* @param string $coreExit
*
* @return CLpItemView
*/
public function setCoreExit($coreExit)
{
$this->coreExit = $coreExit;
return $this;
}
/**
* Get coreExit.
*
* @return string
*/
public function getCoreExit()
{
return $this->coreExit;
}
/**
* Set maxScore.
*
* @param string $maxScore
*
* @return CLpItemView
*/
public function setMaxScore($maxScore)
{
$this->maxScore = $maxScore;
return $this;
}
/**
* Get maxScore.
*
* @return string
*/
public function getMaxScore()
{
return $this->maxScore;
}
/**
* Set id.
*
* @param int $id
*
* @return CLpItemView
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set cId.
*
* @param int $cId
*
* @return CLpItemView
*/
public function setCId($cId)
{
$this->cId = $cId;
return $this;
}
/**
* Get cId.
*
* @return int
*/
public function getCId()
{
return $this->cId;
}
}