parent
d3e0d14459
commit
1443c2fcfb
@ -0,0 +1,8 @@ |
||||
# Embed Registry |
||||
|
||||
Add a course tool to get a registry of embed content and track the students access to it. |
||||
|
||||
## Set up |
||||
|
||||
*Prior to installing/uninstalling this plugin, you will need to make sure the src/Chamilo/PluginBundle/Entity folder is |
||||
temporarily writeable by the web server.* |
@ -0,0 +1,198 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Chamilo\PluginBundle\Entity\EmbedRegistry; |
||||
|
||||
use Chamilo\CoreBundle\Entity\Course; |
||||
use Chamilo\CoreBundle\Entity\Session; |
||||
use Doctrine\ORM\Mapping as ORM; |
||||
|
||||
/** |
||||
* Class EmbedRegistry. |
||||
* |
||||
* @package Chamilo\PluginBundle\Entity\EmbedRegistry |
||||
* |
||||
* @ORM\Entity() |
||||
* @ORM\Table(name="plugin_embed_registry_embed") |
||||
*/ |
||||
class Embed |
||||
{ |
||||
/** |
||||
* @var int |
||||
* |
||||
* @ORM\Column(name="id", type="integer") |
||||
* @ORM\Id |
||||
* @ORM\GeneratedValue |
||||
*/ |
||||
private $id; |
||||
/** |
||||
* @var string |
||||
* |
||||
* @ORM\Column(name="title", type="text") |
||||
*/ |
||||
private $title; |
||||
/** |
||||
* @var \DateTime |
||||
* |
||||
* @ORM\Column(name="display_start_date", type="datetime") |
||||
*/ |
||||
private $displayStartDate; |
||||
/** |
||||
* @var \DateTime |
||||
* |
||||
* @ORM\Column(name="display_end_date", type="datetime") |
||||
*/ |
||||
private $displayEndDate; |
||||
/** |
||||
* @var string |
||||
* |
||||
* @ORM\Column(name="html_code", type="text") |
||||
*/ |
||||
private $htmlCode; |
||||
/** |
||||
* @var Course |
||||
* |
||||
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Course") |
||||
* @ORM\JoinColumn(name="c_id", referencedColumnName="id", nullable=false) |
||||
*/ |
||||
private $course; |
||||
/** |
||||
* @var Session|null |
||||
* |
||||
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Session") |
||||
* @ORM\JoinColumn(name="session_id", referencedColumnName="id") |
||||
*/ |
||||
private $session; |
||||
|
||||
/** |
||||
* @return int |
||||
*/ |
||||
public function getId() |
||||
{ |
||||
return $this->id; |
||||
} |
||||
|
||||
/** |
||||
* @param int $id |
||||
* |
||||
* @return Embed |
||||
*/ |
||||
public function setId($id) |
||||
{ |
||||
$this->id = $id; |
||||
|
||||
return $this; |
||||
} |
||||
|
||||
/** |
||||
* @return string |
||||
*/ |
||||
public function getTitle() |
||||
{ |
||||
return $this->title; |
||||
} |
||||
|
||||
/** |
||||
* @param $title |
||||
* |
||||
* @return Embed |
||||
*/ |
||||
public function setTitle($title) |
||||
{ |
||||
$this->title = $title; |
||||
|
||||
return $this; |
||||
} |
||||
|
||||
/** |
||||
* @return \DateTime |
||||
*/ |
||||
public function getDisplayStartDate() |
||||
{ |
||||
return $this->displayStartDate; |
||||
} |
||||
|
||||
/** |
||||
* @return Embed |
||||
*/ |
||||
public function setDisplayStartDate(\DateTime $displayStartDate) |
||||
{ |
||||
$this->displayStartDate = $displayStartDate; |
||||
|
||||
return $this; |
||||
} |
||||
|
||||
/** |
||||
* @return \DateTime |
||||
*/ |
||||
public function getDisplayEndDate() |
||||
{ |
||||
return $this->displayEndDate; |
||||
} |
||||
|
||||
/** |
||||
* @return Embed |
||||
*/ |
||||
public function setDisplayEndDate(\DateTime $displayEndDate) |
||||
{ |
||||
$this->displayEndDate = $displayEndDate; |
||||
|
||||
return $this; |
||||
} |
||||
|
||||
/** |
||||
* @return string |
||||
*/ |
||||
public function getHtmlCode() |
||||
{ |
||||
return $this->htmlCode; |
||||
} |
||||
|
||||
/** |
||||
* @param string $htmlCode |
||||
* |
||||
* @return Embed |
||||
*/ |
||||
public function setHtmlCode($htmlCode) |
||||
{ |
||||
$this->htmlCode = $htmlCode; |
||||
|
||||
return $this; |
||||
} |
||||
|
||||
/** |
||||
* @return Course |
||||
*/ |
||||
public function getCourse() |
||||
{ |
||||
return $this->course; |
||||
} |
||||
|
||||
/** |
||||
* @return Embed |
||||
*/ |
||||
public function setCourse(Course $course) |
||||
{ |
||||
$this->course = $course; |
||||
|
||||
return $this; |
||||
} |
||||
|
||||
/** |
||||
* @return Session|null |
||||
*/ |
||||
public function getSession() |
||||
{ |
||||
return $this->session; |
||||
} |
||||
|
||||
/** |
||||
* @return Embed |
||||
*/ |
||||
public function setSession(Session $session = null) |
||||
{ |
||||
$this->session = $session; |
||||
|
||||
return $this; |
||||
} |
||||
} |
Loading…
Reference in new issue