public function getResultsAsObjects($classname)
    {
        $new = array();
        foreach ((array) $this->results as $result) {
            if (is_array($result))
                $new[] = new $classname($result);
            else
                $new[] = $result;
        }
        return $new;
    }
public function getResultsAsObjects($classname)
    {
        $new = array();
        foreach ((array) $this->results as $result) {
            if (is_array($result))
                $new[] = new $classname($result);
            else
                $new[] = $result;
        }
        return $new;
    }
public function getResultsAsObjects ( $ classname ) { $ new = array ( ) ; foreach ( ( array ) $ this -> results as $ result ) { if ( is_array ( $ result ) ) $ new [ ] = new $ classname ( $ result ) ; else $ new [ ] = $ result ; } return $ new ; }
Returns all the results as objects of the class specified

@param string $classname The name of the class to return the objects as

@return array An array of the results converted into the new class
Returns all the results as objects of the class specified