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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?php
namespace Application\Model;
use Khansia\Generic\Objects\Map;
use Khansia\Generic\Objects\Mapper;
use Khansia\Generic\Set;
use Khansia\Generic\Result as Result;
class Param extends Mapper {
private $_storage;
public function __construct(\Application\Model\Param\Storage\Skeleton $storage) {
$this->_storage = $storage;
$this->_result = new Result();
parent::__construct(
array(),
array(
// this mapper table on db
),
parent::CASE_INSENSITIVE
);
}
public function getParam($paramtype = null, $param_val3 = null, $param_parent = null){
$data = $this->_storage->loadParam($paramtype, $param_val3, $param_parent);
return $data;
}
public function saveGlobal($param, $table){
$data = $this->_storage->saveGlobal($param, $table);
return $data;
}
public function updateGlobal($tabel, $data, $where){
$data = $this->_storage->updateGlobal($tabel, $data, $where);
return $data;
}
public function getLastSeqPostgree($tabel, $column){
$data = $this->_storage->getLastSeqPostgree($tabel, $column);
return $data;
}
public function loadUser($id = null){
$data = $this->_storage->loadUserData($id);
return $data;
}
public function loadChart($id){
$data = $this->_storage->loadChartData($id);
return $data;
}
public function loadChartimage($id){
$data = $this->_storage->loadChartDataimage($id);
return $data;
}
public function loadChartbutton($id){
$data = $this->_storage->loadBarButtonData($id);
return $data;
}
public function getpiebrowserdata($idweb){
$data = $this->_storage->loadPieBrowserData($idweb);
return $data;
}
public function loadTableUser($id){
$data = $this->_storage->loadTableUserData($id);
return $data;
}
public function loadChartPengunjung($id = null){
$data = $this->_storage->loadAreaPengunjungData($id);
return $data;
}
public function loadChartHalaman($id){
$data = $this->_storage->loadBarHalamanData($id);
return $data;
}
public function loadUserLogin($id = null){
$data = $this->_storage->userLoginData($id);
}
public function deleteGlobal($tabel, $where){
$data = $this->_storage->deleteGlobal($tabel, $where);
return $data;
}
public function loadWebsiteUser($id){
$data = $this->_storage->loadWebsiteUser($id);
return $data;
}
public function loadUsername($id){
$data = $this->_storage->loadUsername($id);
return $data;
}
public function validateWebToken($websiteName, $token){
$data = $this->_storage->validateWebToken($websiteName, $token);
return $data;
}
public function loadtokenid($token){
$data = $this->_storage->loadtokenid($token);
return $data;
}
public function loadkey($key){
$data = $this->_storage->loadkey($key);
return $data;
}
public function setuserdb($dataarray, $location, $browser, $nameweb, $page){
$data = $this->_storage->setuserdb($dataarray, $location, $browser, $nameweb, $page);
return $data;
}
public function setLocationdb($city, $province, $country, $where){
$data = $this->_storage->setLocationdb($city, $province, $country, $where);
return $data;
}
public function getinsertlocation($location){
$data = $this->_storage->insertlocation($location);
return $data;
}
public function getnameweb($token){
$data = $this->_storage->namewebsite($token);
return $data;
}
public function getweb($token){
$data = $this->_storage->getweb($token);
return $data;
}
public function setbehavbtn($behavbtn, $page, $web, $user, $browser){
$data = $this->_storage->setbehavbtn($behavbtn, $page, $web, $user, $browser);
return $data;
}
public function setbehavimg($behavimg, $page, $web, $user, $browser){
$data = $this->_storage->setbehavimg($behavimg, $page, $web, $user, $browser);
return $data;
}
public function setbehavother($behavother, $page, $web, $user, $browser){
$data = $this->_storage->setbehavother($behavother, $page, $web, $user, $browser);
return $data;
}
public function setbehavideo($behavideo, $page, $web, $user, $browser){
$data = $this->_storage->setbehavideo($behavideo, $page, $web, $user, $browser);
return $data;
}
public function gettotalvisitor($idweb){
$data = $this->_storage->totalvisitor($idweb);
return $data;
}
public function gettotalocation($idweb){
$data = $this->_storage->totallocation($idweb);
return $data;
}
public function getpageviews($idweb){
$data = $this->_storage->pageviews($idweb);
return $data;
}
public function getnewvisitor($idweb){
$data = $this->_storage->newvisitor($idweb);
return $data;
}
public function getyearvisitor($idweb){
$data = $this->_storage->loadyearvisitor($idweb);
return $data;
}
public function getnumbervisitor($idweb, $year){
$data = $this->_storage->loadnumbervisitor($idweb, $year);
return $data;
}
public function getmonthvisitor($idweb, $year){
$data = $this->_storage->loadmonthvisitor($idweb, $year);
return $data;
}
public function getvisitorbymonth($idweb, $year, $month){
$data = $this->_storage->loadvisitorbymonth($idweb, $year, $month);
return $data;
}
}