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