Chamilo is a learning management system focused on ease of use and accessibility
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.
chamilo-lms/main/inc/Entity/Course.php

811 lines
15 KiB

<?php
namespace Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* Course
*
* @ORM\Table(name="course")
* @ORM\Entity(repositoryClass="Entity\Repository\CourseRepository")
*/
class Course
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="code", type="string", length=40, precision=0, scale=0, nullable=false, unique=false)
*/
private $code;
/**
* @var string
*
* @ORM\Column(name="directory", type="string", length=40, precision=0, scale=0, nullable=true, unique=false)
*/
private $directory;
/**
* @var string
*
* @ORM\Column(name="db_name", type="string", length=40, precision=0, scale=0, nullable=true, unique=false)
*/
private $dbName;
/**
* @var string
*
* @ORM\Column(name="course_language", type="string", length=20, precision=0, scale=0, nullable=true, unique=false)
*/
private $courseLanguage;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=250, precision=0, scale=0, nullable=true, unique=false)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="description", type="text", precision=0, scale=0, nullable=true, unique=false)
*/
private $description;
/**
* @var string
*
* @ORM\Column(name="category_code", type="string", length=40, precision=0, scale=0, nullable=true, unique=false)
*/
private $categoryCode;
/**
* @var boolean
*
* @ORM\Column(name="visibility", type="boolean", precision=0, scale=0, nullable=true, unique=false)
*/
private $visibility;
/**
* @var integer
*
* @ORM\Column(name="show_score", type="integer", precision=0, scale=0, nullable=false, unique=false)
*/
private $showScore;
/**
* @var string
*
* @ORM\Column(name="tutor_name", type="string", length=200, precision=0, scale=0, nullable=true, unique=false)
*/
private $tutorName;
/**
* @var string
*
* @ORM\Column(name="visual_code", type="string", length=40, precision=0, scale=0, nullable=true, unique=false)
*/
private $visualCode;
/**
* @var string
*
* @ORM\Column(name="department_name", type="string", length=30, precision=0, scale=0, nullable=true, unique=false)
*/
private $departmentName;
/**
* @var string
*
* @ORM\Column(name="department_url", type="string", length=180, precision=0, scale=0, nullable=true, unique=false)
*/
private $departmentUrl;
/**
* @var integer
*
* @ORM\Column(name="disk_quota", type="bigint", precision=0, scale=0, nullable=true, unique=false)
*/
private $diskQuota;
/**
* @var \DateTime
*
* @ORM\Column(name="last_visit", type="datetime", precision=0, scale=0, nullable=true, unique=false)
*/
private $lastVisit;
/**
* @var \DateTime
*
* @ORM\Column(name="last_edit", type="datetime", precision=0, scale=0, nullable=true, unique=false)
*/
private $lastEdit;
/**
* @var \DateTime
*
* @ORM\Column(name="creation_date", type="datetime", precision=0, scale=0, nullable=true, unique=false)
*/
private $creationDate;
/**
* @var \DateTime
*
* @ORM\Column(name="expiration_date", type="datetime", precision=0, scale=0, nullable=true, unique=false)
*/
private $expirationDate;
/**
* @var string
*
* @ORM\Column(name="target_course_code", type="string", length=40, precision=0, scale=0, nullable=true, unique=false)
*/
private $targetCourseCode;
/**
* @var boolean
*
* @ORM\Column(name="subscribe", type="boolean", precision=0, scale=0, nullable=false, unique=false)
*/
private $subscribe;
/**
* @var boolean
*
* @ORM\Column(name="unsubscribe", type="boolean", precision=0, scale=0, nullable=false, unique=false)
*/
private $unsubscribe;
/**
* @var string
*
* @ORM\Column(name="registration_code", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
*/
private $registrationCode;
/**
* @var string
*
* @ORM\Column(name="legal", type="text", precision=0, scale=0, nullable=false, unique=false)
*/
private $legal;
/**
* @var integer
*
* @ORM\Column(name="activate_legal", type="integer", precision=0, scale=0, nullable=false, unique=false)
*/
private $activateLegal;
/**
* @var integer
*
* @ORM\Column(name="course_type_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
*/
private $courseTypeId;
/**
* @ORM\OneToMany(targetEntity="CourseRelUser", mappedBy="course")
**/
private $users;
/**
* @ORM\OneToMany(targetEntity="CItemProperty", mappedBy="course")
**/
private $items;
public function __construct()
{
$this->users = new ArrayCollection();
$this->items = new ArrayCollection();
}
public function getItems()
{
return $this->items;
}
public function getUsers()
{
return $this->users;
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set code
*
* @param string $code
* @return Course
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* Get code
*
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Set directory
*
* @param string $directory
* @return Course
*/
public function setDirectory($directory)
{
$this->directory = $directory;
return $this;
}
/**
* Get directory
*
* @return string
*/
public function getDirectory()
{
return $this->directory;
}
/**
* Set dbName
*
* @param string $dbName
* @return Course
*/
public function setDbName($dbName)
{
$this->dbName = $dbName;
return $this;
}
/**
* Get dbName
*
* @return string
*/
public function getDbName()
{
return $this->dbName;
}
/**
* Set courseLanguage
*
* @param string $courseLanguage
* @return Course
*/
public function setCourseLanguage($courseLanguage)
{
$this->courseLanguage = $courseLanguage;
return $this;
}
/**
* Get courseLanguage
*
* @return string
*/
public function getCourseLanguage()
{
return $this->courseLanguage;
}
/**
* Set title
*
* @param string $title
* @return Course
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set description
*
* @param string $description
* @return Course
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set categoryCode
*
* @param string $categoryCode
* @return Course
*/
public function setCategoryCode($categoryCode)
{
$this->categoryCode = $categoryCode;
return $this;
}
/**
* Get categoryCode
*
* @return string
*/
public function getCategoryCode()
{
return $this->categoryCode;
}
/**
* Set visibility
*
* @param boolean $visibility
* @return Course
*/
public function setVisibility($visibility)
{
$this->visibility = $visibility;
return $this;
}
/**
* Get visibility
*
* @return boolean
*/
public function getVisibility()
{
return $this->visibility;
}
/**
* Set showScore
*
* @param integer $showScore
* @return Course
*/
public function setShowScore($showScore)
{
$this->showScore = $showScore;
return $this;
}
/**
* Get showScore
*
* @return integer
*/
public function getShowScore()
{
return $this->showScore;
}
/**
* Set tutorName
*
* @param string $tutorName
* @return Course
*/
public function setTutorName($tutorName)
{
$this->tutorName = $tutorName;
return $this;
}
/**
* Get tutorName
*
* @return string
*/
public function getTutorName()
{
return $this->tutorName;
}
/**
* Set visualCode
*
* @param string $visualCode
* @return Course
*/
public function setVisualCode($visualCode)
{
$this->visualCode = $visualCode;
return $this;
}
/**
* Get visualCode
*
* @return string
*/
public function getVisualCode()
{
return $this->visualCode;
}
/**
* Set departmentName
*
* @param string $departmentName
* @return Course
*/
public function setDepartmentName($departmentName)
{
$this->departmentName = $departmentName;
return $this;
}
/**
* Get departmentName
*
* @return string
*/
public function getDepartmentName()
{
return $this->departmentName;
}
/**
* Set departmentUrl
*
* @param string $departmentUrl
* @return Course
*/
public function setDepartmentUrl($departmentUrl)
{
$this->departmentUrl = $departmentUrl;
return $this;
}
/**
* Get departmentUrl
*
* @return string
*/
public function getDepartmentUrl()
{
return $this->departmentUrl;
}
/**
* Set diskQuota
*
* @param integer $diskQuota
* @return Course
*/
public function setDiskQuota($diskQuota)
{
$this->diskQuota = $diskQuota;
return $this;
}
/**
* Get diskQuota
*
* @return integer
*/
public function getDiskQuota()
{
return $this->diskQuota;
}
/**
* Set lastVisit
*
* @param \DateTime $lastVisit
* @return Course
*/
public function setLastVisit($lastVisit)
{
$this->lastVisit = $lastVisit;
return $this;
}
/**
* Get lastVisit
*
* @return \DateTime
*/
public function getLastVisit()
{
return $this->lastVisit;
}
/**
* Set lastEdit
*
* @param \DateTime $lastEdit
* @return Course
*/
public function setLastEdit($lastEdit)
{
$this->lastEdit = $lastEdit;
return $this;
}
/**
* Get lastEdit
*
* @return \DateTime
*/
public function getLastEdit()
{
return $this->lastEdit;
}
/**
* Set creationDate
*
* @param \DateTime $creationDate
* @return Course
*/
public function setCreationDate($creationDate)
{
$this->creationDate = $creationDate;
return $this;
}
/**
* Get creationDate
*
* @return \DateTime
*/
public function getCreationDate()
{
return $this->creationDate;
}
/**
* Set expirationDate
*
* @param \DateTime $expirationDate
* @return Course
*/
public function setExpirationDate($expirationDate)
{
$this->expirationDate = $expirationDate;
return $this;
}
/**
* Get expirationDate
*
* @return \DateTime
*/
public function getExpirationDate()
{
return $this->expirationDate;
}
/**
* Set targetCourseCode
*
* @param string $targetCourseCode
* @return Course
*/
public function setTargetCourseCode($targetCourseCode)
{
$this->targetCourseCode = $targetCourseCode;
return $this;
}
/**
* Get targetCourseCode
*
* @return string
*/
public function getTargetCourseCode()
{
return $this->targetCourseCode;
}
/**
* Set subscribe
*
* @param boolean $subscribe
* @return Course
*/
public function setSubscribe($subscribe)
{
$this->subscribe = $subscribe;
return $this;
}
/**
* Get subscribe
*
* @return boolean
*/
public function getSubscribe()
{
return $this->subscribe;
}
/**
* Set unsubscribe
*
* @param boolean $unsubscribe
* @return Course
*/
public function setUnsubscribe($unsubscribe)
{
$this->unsubscribe = $unsubscribe;
return $this;
}
/**
* Get unsubscribe
*
* @return boolean
*/
public function getUnsubscribe()
{
return $this->unsubscribe;
}
/**
* Set registrationCode
*
* @param string $registrationCode
* @return Course
*/
public function setRegistrationCode($registrationCode)
{
$this->registrationCode = $registrationCode;
return $this;
}
/**
* Get registrationCode
*
* @return string
*/
public function getRegistrationCode()
{
return $this->registrationCode;
}
/**
* Set legal
*
* @param string $legal
* @return Course
*/
public function setLegal($legal)
{
$this->legal = $legal;
return $this;
}
/**
* Get legal
*
* @return string
*/
public function getLegal()
{
return $this->legal;
}
/**
* Set activateLegal
*
* @param integer $activateLegal
* @return Course
*/
public function setActivateLegal($activateLegal)
{
$this->activateLegal = $activateLegal;
return $this;
}
/**
* Get activateLegal
*
* @return integer
*/
public function getActivateLegal()
{
return $this->activateLegal;
}
/**
* Set courseTypeId
*
* @param integer $courseTypeId
* @return Course
*/
public function setCourseTypeId($courseTypeId)
{
$this->courseTypeId = $courseTypeId;
return $this;
}
/**
* Get courseTypeId
*
* @return integer
*/
public function getCourseTypeId()
{
return $this->courseTypeId;
}
}