Commit 5c0a2f51af7c06bbb96ba4e8546547ac8eb435df
1 parent
0a2e3ec9
Exists in
master
and in
7 other branches
Ajuste de encode ISO8859-1 na atualização de hipóteses legais
Showing
1 changed file
with
3 additions
and
44 deletions
Show diff stats
rn/PENAgendamentoRN.php
@@ -290,7 +290,7 @@ class PENAgendamentoRN extends InfraRN { | @@ -290,7 +290,7 @@ class PENAgendamentoRN extends InfraRN { | ||
290 | continue; | 290 | continue; |
291 | } | 291 | } |
292 | 292 | ||
293 | - $objDTO->setStrNome($hipotese->nome); | 293 | + $objDTO->setStrNome(utf8_decode($hipotese->nome)); |
294 | 294 | ||
295 | if ($hipotese->status) { | 295 | if ($hipotese->status) { |
296 | $objDTO->setStrAtivo('S'); | 296 | $objDTO->setStrAtivo('S'); |
@@ -298,12 +298,12 @@ class PENAgendamentoRN extends InfraRN { | @@ -298,12 +298,12 @@ class PENAgendamentoRN extends InfraRN { | ||
298 | $objDTO->setStrAtivo('N'); | 298 | $objDTO->setStrAtivo('N'); |
299 | } | 299 | } |
300 | 300 | ||
301 | - //Caso n?o exista a hip?tese ir? cadastra-la no sei. | 301 | + //Caso n?o exista a hipótese irá cadastra-la no sei. |
302 | if (empty($objConsulta)) { | 302 | if (empty($objConsulta)) { |
303 | 303 | ||
304 | $objBD->cadastrar($objDTO); | 304 | $objBD->cadastrar($objDTO); |
305 | } else { | 305 | } else { |
306 | - //Caso contr?rio apenas ir? atualizar os dados. | 306 | + //Caso contrário apenas irá atualizar os dados. |
307 | $objDTO->setNumIdHipoteseLegal($objConsulta->getNumIdHipoteseLegal()); | 307 | $objDTO->setNumIdHipoteseLegal($objConsulta->getNumIdHipoteseLegal()); |
308 | $objBD->alterar($objDTO); | 308 | $objBD->alterar($objDTO); |
309 | } | 309 | } |
@@ -315,45 +315,4 @@ class PENAgendamentoRN extends InfraRN { | @@ -315,45 +315,4 @@ class PENAgendamentoRN extends InfraRN { | ||
315 | throw new InfraException('Erro no agendamento das Hipóteses Legais', $e); | 315 | throw new InfraException('Erro no agendamento das Hipóteses Legais', $e); |
316 | } | 316 | } |
317 | } | 317 | } |
318 | - | ||
319 | } | 318 | } |
320 | - | ||
321 | -// $client = new GearmanClient(); | ||
322 | -// $client->addServer('localhost', 4730); | ||
323 | -// $client->setCreatedCallback("create_change"); | ||
324 | -// $client->setDataCallback("data_change"); | ||
325 | -// $client->setStatusCallback("status_change"); | ||
326 | -// $client->setCompleteCallback("complete_change"); | ||
327 | -// $client->setFailCallback("fail_change"); | ||
328 | -// $data_array =array('mydata'=>'task'); | ||
329 | -// $task= $client->addTask("reverse", "mydata", $data_array); | ||
330 | -// $task2= $client->addTaskLow("reverse", "task", NULL); | ||
331 | -// //$result = $client->do("reverse", "teste"); | ||
332 | -// $client->runTasks(); | ||
333 | -// echo "DONE\n" . $result; | ||
334 | -// function create_change($task) | ||
335 | -// { | ||
336 | -// echo "CREATED: " . $task->jobHandle() . "\n"; | ||
337 | -// } | ||
338 | -// function status_change($task) | ||
339 | -// { | ||
340 | -// echo "STATUS: " . $task->jobHandle() . " - " . $task->taskNumerator() . | ||
341 | -// "/" . $task->taskDenominator() . "\n"; | ||
342 | -// } | ||
343 | -// function complete_change($task) | ||
344 | -// { | ||
345 | -// echo "COMPLETE: " . $task->jobHandle() . ", " . $task->data() . "\n"; | ||
346 | -// } | ||
347 | -// function fail_change($task) | ||
348 | -// { | ||
349 | -// echo "FAILED: " . $task->jobHandle() . "\n"; | ||
350 | -// } | ||
351 | -// function data_change($task) | ||
352 | -// { | ||
353 | -// echo "DATA: " . $task->data() . "\n"; | ||
354 | -// } | ||
355 | -// Function Client_error() | ||
356 | -// { | ||
357 | -// if (! $client->runTasks()) | ||
358 | -// return $client->error() ; | ||
359 | -// } | ||
360 | \ No newline at end of file | 319 | \ No newline at end of file |