[BUGFIX] Re-introduce read-only file mounts
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Domain / Model / FileMount.php
1 <?php
2 namespace TYPO3\CMS\Extbase\Domain\Model;
3
4 /**
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16 /**
17 * This model represents a file mount.
18 *
19 * @api
20 */
21 class FileMount extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
22
23 /**
24 * Title of the file mount.
25 *
26 * @var string
27 * @validate notEmpty
28 */
29 protected $title = '';
30
31 /**
32 * Path of the file mount.
33 *
34 * @var string
35 * @validate notEmpty
36 */
37 protected $path = '';
38
39 /**
40 * Determines whether the value of the path field is to be recognized as an absolute
41 * path on the server or a path relative to the fileadmin/ subfolder to the website.
42 *
43 * If the value is true the path is an absolute one, otherwise the path is relative
44 * the fileadmin.
45 *
46 * @var boolean
47 */
48 protected $isAbsolutePath = FALSE;
49
50 /**
51 * Getter for the title of the file mount.
52 *
53 * @return string
54 */
55 public function getTitle() {
56 return $this->title;
57 }
58
59 /**
60 * Setter for the title of the file mount.
61 *
62 * @param string $value
63 * @return void
64 */
65 public function setTitle($value) {
66 $this->title = $value;
67 }
68
69 /**
70 * Getter for the path of the file mount.
71 *
72 * @return string
73 */
74 public function getPath() {
75 return $this->path;
76 }
77
78 /**
79 * Setter for the path of the file mount.
80 *
81 * @param string $value
82 * @return void
83 */
84 public function setPath($value) {
85 $this->path = $value;
86 }
87
88 /**
89 * Getter for the is absolute path of the file mount.
90 *
91 * @return boolean
92 */
93 public function getIsAbsolutePath() {
94 return $this->isAbsolutePath;
95 }
96
97 /**
98 * Setter for is absolute path of the file mount.
99 *
100 * @param boolean $value
101 * @return void
102 */
103 public function setIsAbsolutePath($value) {
104 $this->isAbsolutePath = $value;
105 }
106
107 /**
108 * Getter for the virtual field read_only
109 *
110 * @return bool
111 */
112 public function isReadOnly() {
113 return FALSE;
114 }
115 }