classes/XLite/Model/CategoryTranslation.php line 16

Open in your IDE?
  1. <?php
  2. /**
  3.  * Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
  4.  * See https://www.x-cart.com/license-agreement.html for license details.
  5.  */
  6. namespace XLite\Model;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * Category multilingual data
  10.  *
  11.  * @ORM\Entity
  12.  * @ORM\Table  (name="category_translations",
  13.  *      indexes={
  14.  *          @ORM\Index (name="ci", columns={"code","id"}),
  15.  *          @ORM\Index (name="id", columns={"id"})
  16.  *      }
  17.  * )
  18.  */
  19. class CategoryTranslation extends \XLite\Model\Base\Translation
  20. {
  21.     /**
  22.      * Category name
  23.      *
  24.      * @var string
  25.      *
  26.      * @ORM\Column (type="string", length=255)
  27.      */
  28.     protected $name;
  29.     /**
  30.      * Category description
  31.      *
  32.      * @var string
  33.      *
  34.      * @ORM\Column (type="text")
  35.      */
  36.     protected $description '';
  37.     /**
  38.      * Category meta keywords
  39.      *
  40.      * @var string
  41.      *
  42.      * @ORM\Column (type="string", length=255)
  43.      */
  44.     protected $metaTags '';
  45.     /**
  46.      * Category meta description
  47.      *
  48.      * @var string
  49.      *
  50.      * @ORM\Column (type="text")
  51.      */
  52.     protected $metaDesc '';
  53.     /**
  54.      * Value of the title HTML-tag for category page
  55.      *
  56.      * @var string
  57.      *
  58.      * @ORM\Column (type="string", length=255)
  59.      */
  60.     protected $metaTitle '';
  61.     /**
  62.      * @var \XLite\Model\Category
  63.      *
  64.      * @ORM\ManyToOne (targetEntity="XLite\Model\Category", inversedBy="translations")
  65.      * @ORM\JoinColumn (name="id", referencedColumnName="category_id", onDelete="CASCADE")
  66.      */
  67.     protected $owner;
  68.     /**
  69.      * Set name
  70.      *
  71.      * @param string $name
  72.      * @return CategoryTranslation
  73.      */
  74.     public function setName($name)
  75.     {
  76.         $this->name $name;
  77.         return $this;
  78.     }
  79.     /**
  80.      * Get name
  81.      *
  82.      * @return string
  83.      */
  84.     public function getName()
  85.     {
  86.         return $this->name;
  87.     }
  88.     /**
  89.      * Set description
  90.      *
  91.      * @param string $description
  92.      * @return CategoryTranslation
  93.      */
  94.     public function setDescription($description)
  95.     {
  96.         $this->description $description;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get description
  101.      *
  102.      * @return string
  103.      */
  104.     public function getDescription()
  105.     {
  106.         return $this->description;
  107.     }
  108.     /**
  109.      * Set metaTags
  110.      *
  111.      * @param string $metaTags
  112.      * @return CategoryTranslation
  113.      */
  114.     public function setMetaTags($metaTags)
  115.     {
  116.         $this->metaTags $metaTags;
  117.         return $this;
  118.     }
  119.     /**
  120.      * Get metaTags
  121.      *
  122.      * @return string
  123.      */
  124.     public function getMetaTags()
  125.     {
  126.         return $this->metaTags;
  127.     }
  128.     /**
  129.      * Set metaDesc
  130.      *
  131.      * @param string $metaDesc
  132.      * @return CategoryTranslation
  133.      */
  134.     public function setMetaDesc($metaDesc)
  135.     {
  136.         $this->metaDesc $metaDesc;
  137.         return $this;
  138.     }
  139.     /**
  140.      * Get metaDesc
  141.      *
  142.      * @return string
  143.      */
  144.     public function getMetaDesc()
  145.     {
  146.         return $this->metaDesc;
  147.     }
  148.     /**
  149.      * Set metaTitle
  150.      *
  151.      * @param string $metaTitle
  152.      * @return CategoryTranslation
  153.      */
  154.     public function setMetaTitle($metaTitle)
  155.     {
  156.         $this->metaTitle $metaTitle;
  157.         return $this;
  158.     }
  159.     /**
  160.      * Get metaTitle
  161.      *
  162.      * @return string
  163.      */
  164.     public function getMetaTitle()
  165.     {
  166.         return $this->metaTitle;
  167.     }
  168.     /**
  169.      * Get label_id
  170.      *
  171.      * @return integer
  172.      */
  173.     public function getLabelId()
  174.     {
  175.         return $this->label_id;
  176.     }
  177.     /**
  178.      * Set code
  179.      *
  180.      * @param string $code
  181.      * @return CategoryTranslation
  182.      */
  183.     public function setCode($code)
  184.     {
  185.         $this->code $code;
  186.         return $this;
  187.     }
  188.     /**
  189.      * Get code
  190.      *
  191.      * @return string
  192.      */
  193.     public function getCode()
  194.     {
  195.         return $this->code;
  196.     }
  197. }