<?
    class repDOMPDF3 extends MDOMPDFReport
    {
        public function createFields()
        {
            $aluno = $this->manager->getBusiness('example','aluno');
            $query = $aluno->listAll();
            $table = new MTableRaw('Relação de Alunos',$query->result);
            $table->setAlternate(true);
            $table->setAttributes('cellspacing=1 width=80% cellpadding=3 border=0 align=center'); 
            $fields[] = $table;
            $this->setFields($fields); 
        }
    }
?>
