Advertisement
taliteo

Extbase-Model FileReference

Mar 12th, 2013
595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.98 KB | None | 0 0
  1. <?php
  2. namespace In2code\In2msiproducts\Domain\Model;
  3.  
  4.     /***************************************************************
  5.      *  Copyright notice
  6.      *
  7.      *  (c) 2013 Tina Gasteiger <tina.gasteiger@in2code.de>, in2code
  8.      *
  9.      *  All rights reserved
  10.      *
  11.      *  This script is part of the TYPO3 project. The TYPO3 project is
  12.      *  free software; you can redistribute it and/or modify
  13.      *  it under the terms of the GNU General Public License as published by
  14.      *  the Free Software Foundation; either version 3 of the License, or
  15.      *  (at your option) any later version.
  16.      *
  17.      *  The GNU General Public License can be found at
  18.      *  http://www.gnu.org/copyleft/gpl.html.
  19.      *
  20.      *  This script is distributed in the hope that it will be useful,
  21.      *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  22.      *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  23.      *  GNU General Public License for more details.
  24.      *
  25.      *  This copyright notice MUST APPEAR in all copies of the script!
  26.      ***************************************************************/
  27.  
  28. /**
  29.  *
  30.  *
  31.  * @package in2msiproducts
  32.  * @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
  33.  *
  34.  */
  35. class FileReference extends \TYPO3\CMS\Extbase\Domain\Model\File {
  36.  
  37.     /**
  38.      * @var \In2code\In2msiproducts\Domain\Model\File
  39.      */
  40.     protected $file;
  41.  
  42.     /**
  43.      * @var \string
  44.      */
  45.     protected $title;
  46.  
  47.     /**
  48.      * @var \string
  49.      */
  50.     protected $description;
  51.  
  52.     /**
  53.      * @var \string
  54.      */
  55.     protected $alternative;
  56.  
  57.     /**
  58.      * @var \string
  59.      */
  60.     protected $link;
  61.  
  62.     /**
  63.      * @var \string
  64.      */
  65.     protected $downloadname;
  66.  
  67.     /**
  68.      * @param string $alternative
  69.      */
  70.     public function setAlternative($alternative) {
  71.         $this->alternative = $alternative;
  72.     }
  73.  
  74.     /**
  75.      * @return string
  76.      */
  77.     public function getAlternative() {
  78.         return $this->alternative;
  79.     }
  80.  
  81.     /**
  82.      * @param string $description
  83.      */
  84.     public function setDescription($description) {
  85.         $this->description = $description;
  86.     }
  87.  
  88.     /**
  89.      * @return string
  90.      */
  91.     public function getDescription() {
  92.         return $this->description;
  93.     }
  94.  
  95.     /**
  96.      * @param string $downloadname
  97.      */
  98.     public function setDownloadname($downloadname) {
  99.         $this->downloadname = $downloadname;
  100.     }
  101.  
  102.     /**
  103.      * @return string
  104.      */
  105.     public function getDownloadname() {
  106.         return $this->downloadname;
  107.     }
  108.  
  109.     /**
  110.      * @param string $link
  111.      */
  112.     public function setLink($link) {
  113.         $this->link = $link;
  114.     }
  115.  
  116.     /**
  117.      * @return string
  118.      */
  119.     public function getLink() {
  120.         return $this->link;
  121.     }
  122.  
  123.     /**
  124.      * @param string $title
  125.      */
  126.     public function setTitle($title) {
  127.         $this->title = $title;
  128.     }
  129.  
  130.     /**
  131.      * @return string
  132.      */
  133.     public function getTitle() {
  134.         return $this->title;
  135.     }
  136.  
  137.     /**
  138.      * @param \In2code\In2msiproducts\Domain\Model\File $file
  139.      */
  140.     public function setFile($file) {
  141.         $this->file = $file;
  142.     }
  143.  
  144.     /**
  145.      * @return \In2code\In2msiproducts\Domain\Model\File
  146.      */
  147.     public function getFile() {
  148.         return $this->file;
  149.     }
  150. }
  151.  
  152. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement