123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <?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;
- }
- /**
- * @param \DateTime $displayStartDate
- *
- * @return Embed
- */
- public function setDisplayStartDate(\DateTime $displayStartDate)
- {
- $this->displayStartDate = $displayStartDate;
- return $this;
- }
- /**
- * @return \DateTime
- */
- public function getDisplayEndDate()
- {
- return $this->displayEndDate;
- }
- /**
- * @param \DateTime $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;
- }
- /**
- * @param Course $course
- *
- * @return Embed
- */
- public function setCourse(Course $course)
- {
- $this->course = $course;
- return $this;
- }
- /**
- * @return Session|null
- */
- public function getSession()
- {
- return $this->session;
- }
- /**
- * @param Session|null $session
- *
- * @return Embed
- */
- public function setSession(Session $session = null)
- {
- $this->session = $session;
- return $this;
- }
- }
|