public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { parent::resgatarObjetos($info); $temp = new EmpresaOfertaColetiva($info[self::ID]); $temp->setURL($info[parent::URL]); $temp->setTexto($info[parent::TEXTO]); $temp->razaoSocial = $info[self::RAZAOSOCIAL]; $temp->cnpj = $info[self::CNPJ]; $temp->rg = $info[self::RG]; $temp->cpf = $info[self::CPF]; $temp->setDataNasc(new DataHora($info[self::DATANASC])); $temp->usuario = $info[self::USUARIO]; $temp->nome = $info[self::NOME]; $temp->emailPrimario = $info[self::EMAIL]; $temp->senha = $info[self::SENHA]; $temp->emailSecundario = $info[self::EMAILSECUNDARIO]; $temp->sexo = $info[self::SEXO]; $temp->site = $info[self::SITE]; $temp->setDataCadastro(new DataHora($info[self::DATACADASTRO])); if (!empty($info[self::FOTO])) { $temp->setFoto(new Image(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataPessoasPerfil . $info[self::FOTO]))); } return $temp; } }