public function getAll()
    {
        $fields = implode(', ', $this->fields);
        $sql = 'SELECT ' . $fields . ' FROM ' . $this->table;
        $query = $this->pdo->prepare($sql);
        $query->execute();

        return $query->fetchAll(PDO::FETCH_ASSOC);
    }
public function getAll()
    {
        $fields = implode(', ', $this->fields);
        $sql = 'SELECT ' . $fields . ' FROM ' . $this->table;
        $query = $this->pdo->prepare($sql);
        $query->execute();

        return $query->fetchAll(PDO::FETCH_ASSOC);
    }
public function getAll ( ) { $ fields = implode ( ', ' , $ this -> fields ) ; $ sql = 'SELECT ' . $ fields . ' FROM ' . $ this -> table ; $ query = $ this -> pdo -> prepare ( $ sql ) ; $ query -> execute ( ) ; return $ query -> fetchAll ( PDO :: FETCH_ASSOC ) ; }
Run a SELECT all query
@return array Query result
@since 1.1.4
Run a SELECT all query