@@ 99-104 (lines=6) @@ | ||
96 | $params['type'] = 'registered'; |
|
97 | $data = $this->controller->attendance_model->getCommonAttendance($params); |
|
98 | $registered = []; |
|
99 | foreach ($data as $row) { |
|
100 | $registered[] = [ |
|
101 | 'x' => $row['unix_date'] * 1000, |
|
102 | 'y' => (int) $row['users_count'], |
|
103 | ]; |
|
104 | } |
|
105 | ||
106 | $params['type'] = 'unregistered'; |
|
107 | $data = $this->controller->attendance_model->getCommonAttendance($params); |
|
@@ 109-114 (lines=6) @@ | ||
106 | $params['type'] = 'unregistered'; |
|
107 | $data = $this->controller->attendance_model->getCommonAttendance($params); |
|
108 | $unregistered = []; |
|
109 | foreach ($data as $row) { |
|
110 | $unregistered[] = [ |
|
111 | 'x' => $row['unix_date'] * 1000, |
|
112 | 'y' => (int) $row['users_count'], |
|
113 | ]; |
|
114 | } |
|
115 | ||
116 | $this->controller->import('classes/ZeroFiller'); |
|
117 |