'Not verified', 1 => 'Verified', ]; } public function status_mapping () { return [ 0 => 'Inactive', 1 => 'Active', 2 => 'Suspend', ]; } public function role_id_mapping () { return [ 1 => 'Member', 2 => 'Admin', ]; } public function type_mapping () { return [ 'n' => 'Normal', 'f' => 'Facebook', 'g' => 'Google', ]; } public function get_user ($where) { return $this->_join ('user', 'user_id', $where, []); } public function get_user_paginated ($page, $limit, $where, $order_by, $direction) { return $this->_join_paginate ('user', 'user_id', $where, $page, $limit, $order_by, $direction, []); } public function count_paginated ($where) { return count($this->_join ('user', 'user_id', $where, [])); } }