Total Complexity | 12 |
Total Lines | 73 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class Link { |
||
10 | private $id; |
||
11 | private $name; |
||
12 | private $url; |
||
13 | private $description; |
||
14 | private $image; |
||
15 | private $inactive; |
||
16 | private $user; |
||
17 | private $date; |
||
18 | private $userid; |
||
19 | private $category_name; |
||
20 | |||
21 | public function __construct( |
||
22 | $id, |
||
23 | $name, |
||
24 | $url, |
||
25 | $description, |
||
26 | $imgext, |
||
27 | $inactive, |
||
28 | $user, |
||
29 | $date, |
||
30 | $userid, |
||
31 | $category_name |
||
32 | ) { |
||
33 | $this->id = $id; |
||
34 | $this->name = $name; |
||
35 | $this->url = $url; |
||
36 | $this->description = $description; |
||
37 | $this->inactive = $inactive; |
||
38 | $this->user = $user; |
||
39 | $this->date = $date; |
||
40 | $this->userid = $userid; |
||
41 | $this->category_name = $category_name; |
||
42 | |||
43 | if ($imgext && $imgext !== "") { |
||
44 | $this->image = $GLOBALS['website_image_path']."/{$id}.{$imgext}"; |
||
45 | } |
||
46 | } |
||
47 | |||
48 | public function getName() { |
||
50 | } |
||
51 | |||
52 | public function getUrl() { |
||
53 | return $this->url; |
||
54 | } |
||
55 | |||
56 | public function getDescription() { |
||
58 | } |
||
59 | |||
60 | public function getImage() { |
||
61 | return $this->image; |
||
62 | } |
||
63 | |||
64 | public function getInactive() { |
||
65 | return $this->inactive; |
||
66 | } |
||
67 | |||
68 | public function getUser() { |
||
69 | return $this->user; |
||
70 | } |
||
71 | |||
72 | public function getUserId() { |
||
73 | return $this->userid; |
||
74 | } |
||
75 | |||
76 | public function getDate() { |
||
78 | } |
||
79 | |||
80 | public function getCategoryName() { |
||
81 | return $this->category_name; |
||
82 | } |
||
83 | } |
||
84 |