-
Notifications
You must be signed in to change notification settings - Fork 0
/
News.php
57 lines (41 loc) · 1003 Bytes
/
News.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
class Wsm_News{
private $id;
private $title;
private $content;
private $date;
private $signature;
public function getId() {
return $this->id;
}
public function getTitle() {
return $this->title;
}
public function getContent() {
return $this->content;
}
public function getDate() {
return $this->date;
}
public function getDateFormatted() {
return date_format(new DateTime($this->date), 'd.m.Y\r.');
}
public function getSignature() {
return $this->signature;
}
public function setId($id) {
$this->id = $id;
}
public function setTitle($title) {
$this->title = $title;
}
public function setContent($content) {
$this->content = $content;
}
public function setDate($date) {
$this->date = $date;
}
public function setSignature($signature) {
$this->signature = $signature;
}
}