protected function select(string $query, array $parameters = [], string $allowedTags = ""): array
    {
        if (!is_null($this->pager)) {
            $query .= $this->pager->getSqlLimit();
        }
        $statement = $this->query($query, $parameters);
        $statement->setAllowedHtmlTags($allowedTags);
        $results = [];
        while ($row = $statement->next($this->fetchStyle)) {
            $results[] = $row;
        }
        return $results;
    }
protected function select(string $query, array $parameters = [], string $allowedTags = ""): array
    {
        if (!is_null($this->pager)) {
            $query .= $this->pager->getSqlLimit();
        }
        $statement = $this->query($query, $parameters);
        $statement->setAllowedHtmlTags($allowedTags);
        $results = [];
        while ($row = $statement->next($this->fetchStyle)) {
            $results[] = $row;
        }
        return $results;
    }
protected function select ( string $ query , array $ parameters = [ ] , string $ allowedTags = "" ) : array { if ( ! is_null ( $ this -> pager ) ) { $ query .= $ this -> pager -> getSqlLimit ( ) ; } $ statement = $ this -> query ( $ query , $ parameters ) ; $ statement -> setAllowedHtmlTags ( $ allowedTags ) ; $ results = [ ] ; while ( $ row = $ statement -> next ( $ this -> fetchStyle ) ) { $ results [ ] = $ row ; } return $ results ; }
Execute a SELECT query which return the entire set of rows in an array. Will
return an empty array if the query did not return any results.

@param string $query
@param array $parameters
@param string $allowedTags
@return \stdClass[]
Execute a SELECT query which return the entire set of rows in an array . Will return an empty array if the query did not return any results .