public function listar($ordem = "ASC", $campo = self::ID) { $info = parent::listar($ordem, $campo); if (!empty($info)) { parent::resgatarObjetos($info); $temp = new ProdutoMarca($info[self::ID]); $temp->nome = $info[self::NOME]; $temp->descricao = $info[self::DESCRICAO]; $temp->enderecoURL = $info[self::ENDERECOURL]; $temp->disponivel = $info[self::DISPONIVEL] == self::VALOR_DISPONIVEL_TRUE ? true : false; if (!empty($info[self::IMAGEM])) { $temp->setImagem(new Image(new Arquivos(Sistema::$caminhoURL . Sistema::$caminhoDataProdutoMarcas . $info[self::IMAGEM]))); } $temp->setURL($info[parent::URL]); return $temp; } }