Advertisement
taliteo

Extbase-Model File

Mar 12th, 2013
609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.88 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 File extends \TYPO3\CMS\Extbase\Domain\Model\File {
  36.     /**
  37.      * @var string
  38.      */
  39.     protected $name;
  40.  
  41.     /**
  42.      * @var string
  43.      */
  44.     protected $title;
  45.  
  46.     /**
  47.      * @var string
  48.      */
  49.     protected $description;
  50.  
  51.     /**
  52.      * @var string
  53.      */
  54.     protected $identifier;
  55.  
  56.     /**
  57.      * @var string
  58.      */
  59.     protected $extension;
  60.  
  61.     /**
  62.      * @var string
  63.      */
  64.     protected $mimeType;
  65.  
  66.     /**
  67.      * @var int
  68.      */
  69.     protected $width;
  70.  
  71.     /**
  72.      * @var int
  73.      */
  74.     protected $height;
  75.  
  76.     /**
  77.      * @var string
  78.      */
  79.     protected $alternative;
  80.  
  81.     /**
  82.      * @var int
  83.      */
  84.     protected $size;
  85.  
  86.     /**
  87.      * @param string $alternative
  88.      */
  89.     public function setAlternative($alternative) {
  90.         $this->alternative = $alternative;
  91.     }
  92.  
  93.     /**
  94.      * @return string
  95.      */
  96.     public function getAlternative() {
  97.         return $this->alternative;
  98.     }
  99.  
  100.     /**
  101.      * @param string $description
  102.      */
  103.     public function setDescription($description) {
  104.         $this->description = $description;
  105.     }
  106.  
  107.     /**
  108.      * @return string
  109.      */
  110.     public function getDescription() {
  111.         return $this->description;
  112.     }
  113.  
  114.     /**
  115.      * @param string $extension
  116.      */
  117.     public function setExtension($extension) {
  118.         $this->extension = $extension;
  119.     }
  120.  
  121.     /**
  122.      * @return string
  123.      */
  124.     public function getExtension() {
  125.         return $this->extension;
  126.     }
  127.  
  128.     /**
  129.      * @param int $height
  130.      */
  131.     public function setHeight($height) {
  132.         $this->height = $height;
  133.     }
  134.  
  135.     /**
  136.      * @return int
  137.      */
  138.     public function getHeight() {
  139.         return $this->height;
  140.     }
  141.  
  142.     /**
  143.      * @param string $identifier
  144.      */
  145.     public function setIdentifier($identifier) {
  146.         $this->identifier = $identifier;
  147.     }
  148.  
  149.     /**
  150.      * @return string
  151.      */
  152.     public function getIdentifier() {
  153.         return 'fileadmin' . $this->identifier;
  154.     }
  155.  
  156.     /**
  157.      * @param string $mimeType
  158.      */
  159.     public function setMimeType($mimeType) {
  160.         $this->mimeType = $mimeType;
  161.     }
  162.  
  163.     /**
  164.      * @return string
  165.      */
  166.     public function getMimeType() {
  167.         return $this->mimeType;
  168.     }
  169.  
  170.     /**
  171.      * @param string $name
  172.      */
  173.     public function setName($name) {
  174.         $this->name = $name;
  175.     }
  176.  
  177.     /**
  178.      * @return string
  179.      */
  180.     public function getName() {
  181.         return $this->name;
  182.     }
  183.  
  184.     /**
  185.      * @param int $size
  186.      */
  187.     public function setSize($size) {
  188.         $this->size = $size;
  189.     }
  190.  
  191.     /**
  192.      * @return int
  193.      */
  194.     public function getSize() {
  195.         return $this->size;
  196.     }
  197.  
  198.     /**
  199.      * @param string $title
  200.      */
  201.     public function setTitle($title) {
  202.         $this->title = $title;
  203.     }
  204.  
  205.     /**
  206.      * @return string
  207.      */
  208.     public function getTitle() {
  209.         return $this->title;
  210.     }
  211.  
  212.     /**
  213.      * @param int $width
  214.      */
  215.     public function setWidth($width) {
  216.         $this->width = $width;
  217.     }
  218.  
  219.     /**
  220.      * @return int
  221.      */
  222.     public function getWidth() {
  223.         return $this->width;
  224.     }
  225.  
  226.  
  227. }
  228. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement