| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function row() |
||
| 22 | { |
||
| 23 | $id = userId(); |
||
| 24 | $model = $this->load->model('User'); |
||
| 25 | $user = $model->user($id); |
||
| 26 | |||
| 27 | $user->new = $this->isUserNew($user->registration); |
||
| 28 | $user->registration = $this->changeFormatDate($user->registration); |
||
| 29 | $user->last_login = $this->changeFormatDate($user->last_login); |
||
| 30 | $user->last_logout = $this->changeFormatDate($user->last_logout); |
||
| 31 | $user->birthday = $this->changeFormatDate($user->birthday, ['Y-m-d', 'd M Y']); |
||
| 32 | $user->country_icon = $this->countries($user->country); |
||
| 33 | |||
| 34 | $countries = $this->countries('all', 'name'); |
||
| 35 | $countries_options = implode(',', $countries); |
||
| 36 | |||
| 37 | $context = [ |
||
| 38 | 'user' => $user, |
||
| 39 | 'countries_options' => $countries_options, |
||
| 40 | ]; |
||
| 41 | return $this->view->render('admin/pages/users/user', $context); |
||
| 42 | } |
||
| 44 |