'Pending', 1 => 'Confirmed', 2 => 'Paid' ]; } public function type_mapping() { return [ 0 => 'user' ]; } 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, [])); } public function get_referrer($where) { return $this->_join('referrer', 'referrer_user_id', $where, []); } public function get_referrer_paginated($page, $limit, $where, $order_by, $direction) { return $this->_join_paginate('referrer', 'referrer_user_id', $where, $page, $limit, $order_by, $direction, []); } }