CI_DB_query_builder::get PHP Method

get() public method

Compiles the select statement based on the other functions called and runs the query
public get ( $table = '', $limit = NULL, $offset = NULL ) : CI_DB_result
return CI_DB_result
    public function get($table = '', $limit = NULL, $offset = NULL)
    {
        if ($table !== '') {
            $this->_track_aliases($table);
            $this->from($table);
        }
        if (!empty($limit)) {
            $this->limit($limit, $offset);
        }
        $result = $this->query($this->_compile_select());
        $this->_reset_select();
        return $result;
    }