fetch_data(); } protected function fetch_data() { $this->transaction_payment_method_list = array(); $query = "select * from transaction_payment_methods order by transaction_payment_method_name"; $res = pmb_mysql_query($query); $i=0; if (pmb_mysql_num_rows($res)) { while ($row = pmb_mysql_fetch_object($res)) { $this->transaction_payment_method_list[$i]['id'] = $row->transaction_payment_method_id; $this->transaction_payment_method_list[$i]['name'] = $row->transaction_payment_method_name; $i++; } } } public static function get_selector($f_name = 'f_payment_method', $id = 0) { return do_selector('transaction_payment_methods', $f_name , $id); } public function get_data() { return $this->transaction_payment_method_list; } }