public function get_records() {
        global $DB;
        return $DB->get_records_sql($this->build_query(), $this->params, $this->limitfrom, $this->limitnum);
    }
public function get_records() {
        global $DB;
        return $DB->get_records_sql($this->build_query(), $this->params, $this->limitfrom, $this->limitnum);
    }
public function get_records ( ) { global $ DB ; return $ DB -> get_records_sql ( $ this -> build_query ( ) , $ this -> params , $ this -> limitfrom , $ this -> limitnum ) ; }
Get the records.

@return array
Get the records .