[TASK] Namespace classes
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Domain / Model / FileMount.php
1 <?php
2 namespace TYPO3\CMS\Extbase\Domain\Model;
3
4 /***************************************************************
5 * Copyright notice
6 *
7 * (c) 2012 Markus Günther <mail@markus-guenther.de>
8 * All rights reserved
9 *
10 * This script is part of the TYPO3 project. The TYPO3 project is
11 * free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * The GNU General Public License can be found at
17 * http://www.gnu.org/copyleft/gpl.html.
18 * A copy is found in the textfile GPL.txt and important notices to the license
19 * from the author is found in LICENSE.txt distributed with these scripts.
20 *
21 * This script is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * This copyright notice MUST APPEAR in all copies of the script!
27 ***************************************************************/
28 /**
29 * This model represents a file mount.
30 *
31 * @author Markus Günther <mail@markus-guenther.de>
32 * @package Extbase
33 * @scope prototype
34 * @entity
35 * @api
36 */
37 class FileMount extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
38
39 /**
40 * Title of the file mount.
41 *
42 * @var string
43 * @validate notEmpty
44 */
45 protected $title = '';
46
47 /**
48 * Path of the file mount.
49 *
50 * @var string
51 * @validate notEmpty
52 */
53 protected $path = '';
54
55 /**
56 * Determines whether the value of the path field is to be recognized as an absolute
57 * path on the server or a path relative to the fileadmin/ subfolder to the website.
58 *
59 * If the value is true the path is an absolute one, otherwise the path is relative
60 * the fileadmin.
61 *
62 * @var boolean
63 */
64 protected $isAbsolutePath = FALSE;
65
66 /**
67 * Getter for the title of the file mount.
68 *
69 * @return string
70 */
71 public function getTitle() {
72 return $this->title;
73 }
74
75 /**
76 * Setter for the title of the file mount.
77 *
78 * @param string $value
79 * @return void
80 */
81 public function setTitle($value) {
82 $this->title = $value;
83 }
84
85 /**
86 * Getter for the path of the file mount.
87 *
88 * @return string
89 */
90 public function getPath() {
91 return $this->path;
92 }
93
94 /**
95 * Setter for the path of the file mount.
96 *
97 * @param string $value
98 * @return void
99 */
100 public function setPath($value) {
101 $this->path = $value;
102 }
103
104 /**
105 * Getter for the is absolute path of the file mount.
106 *
107 * @return boolean
108 */
109 public function getIsAbsolutePath() {
110 return $this->isAbsolutePath;
111 }
112
113 /**
114 * Setter for is absolute path of the file mount.
115 *
116 * @param boolean $value
117 * @return void
118 */
119 public function setIsAbsolutePath($value) {
120 $this->isAbsolutePath = $value;
121 }
122
123 }
124
125
126 ?>