Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1.  
  2. private function unifica() {
  3. if ($this->properties['excluir']) {
  4. Logger::begin('registros do banco');
  5. if (!$this->encontrarRegistros_de()) {
  6. Logger::setAtivo(false);
  7. return;
  8. }
  9.  
  10. if ($this->properties['mesclar']) {
  11. $this->encontrarRegistros_para();
  12. Logger::end();
  13.  
  14. $this->mesclar();
  15. } else {
  16. Logger::end();
  17. }
  18.  
  19. } else if ($this->properties['atualizar']) {
  20. Logger::begin("registros do banco");
  21. if (!$this->encontrarRegistros_de()) {
  22. Logger::setAtivo(false);
  23. return;
  24. }
  25.  
  26. if ($this->properties['comparar']) {
  27. $this->encontrarRegistros_para();
  28. Logger::end();
  29.  
  30. $this->comparar();
  31. } else {
  32. Logger::end();
  33. }
  34. $this->atualizar();
  35. }
  36. $this->excluir();
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement