function listar($tabela, $campos, $where = null, $query = null) { $DAO = new GenericoDAO(); $resultado = $DAO->Listar($tabela, $campos, $where, $query); return $resultado->fetchAll(); }