public function all()
    {
        $this->reset();
        $result = [];

        while ($row = $this->get()) {
            $result[] = $row;
        }

        return $result;
    }
public function all()
    {
        $this->reset();
        $result = [];

        while ($row = $this->get()) {
            $result[] = $row;
        }

        return $result;
    }
public function all ( ) { $ this -> reset ( ) ; $ result = [ ] ; while ( $ row = $ this -> get ( ) ) { $ result [ ] = $ row ; } return $ result ; }
Return an array with all the data from the query.
@return array
Return an array with all the data from the query .