1
|
|
|
<?php |
2
|
|
|
/* For licensing terms, see /license.txt */ |
3
|
|
|
|
4
|
|
|
namespace Chamilo\CoreBundle\Entity; |
5
|
|
|
|
6
|
|
|
use Doctrine\ORM\Mapping as ORM; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* SystemTemplate. |
10
|
|
|
* |
11
|
|
|
* @ORM\Table(name="system_template") |
12
|
|
|
* @ORM\Entity |
13
|
|
|
*/ |
14
|
|
|
class SystemTemplate |
15
|
|
|
{ |
16
|
|
|
/** |
17
|
|
|
* @var int |
18
|
|
|
* |
19
|
|
|
* @ORM\Column(name="id", type="integer") |
20
|
|
|
* @ORM\Id |
21
|
|
|
* @ORM\GeneratedValue() |
22
|
|
|
*/ |
23
|
|
|
protected $id; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* @var string |
27
|
|
|
* |
28
|
|
|
* @ORM\Column(name="title", type="string", length=250, nullable=false) |
29
|
|
|
*/ |
30
|
|
|
protected $title; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var string |
34
|
|
|
* |
35
|
|
|
* @ORM\Column(name="comment", type="text", nullable=false) |
36
|
|
|
*/ |
37
|
|
|
protected $comment; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string |
41
|
|
|
* |
42
|
|
|
* @ORM\Column(name="image", type="string", length=250, nullable=false) |
43
|
|
|
*/ |
44
|
|
|
protected $image; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var string |
48
|
|
|
* |
49
|
|
|
* @ORM\Column(name="content", type="text", nullable=false) |
50
|
|
|
*/ |
51
|
|
|
protected $content; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string |
55
|
|
|
* |
56
|
|
|
* ORM\Column(name="language", type="string", length=40, nullable=true, unique=false) |
57
|
|
|
*/ |
58
|
|
|
protected $language; |
59
|
|
|
|
60
|
|
|
public function __construct() |
61
|
|
|
{ |
62
|
|
|
$this->comment = ''; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* Set title. |
67
|
|
|
* |
68
|
|
|
* @param string $title |
69
|
|
|
* |
70
|
|
|
* @return SystemTemplate |
71
|
|
|
*/ |
72
|
|
|
public function setTitle($title) |
73
|
|
|
{ |
74
|
|
|
$this->title = $title; |
75
|
|
|
|
76
|
|
|
return $this; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* Get title. |
81
|
|
|
* |
82
|
|
|
* @return string |
83
|
|
|
*/ |
84
|
|
|
public function getTitle() |
85
|
|
|
{ |
86
|
|
|
return $this->title; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* Set comment. |
91
|
|
|
* |
92
|
|
|
* @param string $comment |
93
|
|
|
* |
94
|
|
|
* @return SystemTemplate |
95
|
|
|
*/ |
96
|
|
|
public function setComment($comment) |
97
|
|
|
{ |
98
|
|
|
$this->comment = $comment; |
99
|
|
|
|
100
|
|
|
return $this; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* Get comment. |
105
|
|
|
* |
106
|
|
|
* @return string |
107
|
|
|
*/ |
108
|
|
|
public function getComment() |
109
|
|
|
{ |
110
|
|
|
return $this->comment; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* Set image. |
115
|
|
|
* |
116
|
|
|
* @param string $image |
117
|
|
|
* |
118
|
|
|
* @return SystemTemplate |
119
|
|
|
*/ |
120
|
|
|
public function setImage($image) |
121
|
|
|
{ |
122
|
|
|
$this->image = $image; |
123
|
|
|
|
124
|
|
|
return $this; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* Get image. |
129
|
|
|
* |
130
|
|
|
* @return string |
131
|
|
|
*/ |
132
|
|
|
public function getImage() |
133
|
|
|
{ |
134
|
|
|
return $this->image; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* Set content. |
139
|
|
|
* |
140
|
|
|
* @param string $content |
141
|
|
|
* |
142
|
|
|
* @return SystemTemplate |
143
|
|
|
*/ |
144
|
|
|
public function setContent($content) |
145
|
|
|
{ |
146
|
|
|
$this->content = $content; |
147
|
|
|
|
148
|
|
|
return $this; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* Get content. |
153
|
|
|
* |
154
|
|
|
* @return string |
155
|
|
|
*/ |
156
|
|
|
public function getContent() |
157
|
|
|
{ |
158
|
|
|
return $this->content; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* Set language. |
163
|
|
|
* |
164
|
|
|
* @param string $language |
165
|
|
|
* |
166
|
|
|
* @return SystemTemplate |
167
|
|
|
*/ |
168
|
|
|
public function setLanguage($language) |
169
|
|
|
{ |
170
|
|
|
$this->language = $language; |
171
|
|
|
|
172
|
|
|
return $this; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* Get language. |
177
|
|
|
* |
178
|
|
|
* @return string |
179
|
|
|
*/ |
180
|
|
|
public function getLanguage() |
181
|
|
|
{ |
182
|
|
|
return $this->language; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* Get id. |
187
|
|
|
* |
188
|
|
|
* @return int |
189
|
|
|
*/ |
190
|
|
|
public function getId() |
191
|
|
|
{ |
192
|
|
|
return $this->id; |
193
|
|
|
} |
194
|
|
|
} |
195
|
|
|
|