Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function unifica() {
- if ($this->properties['excluir']) {
- Logger::begin('registros do banco');
- if (!$this->encontrarRegistros_de()) {
- Logger::setAtivo(false);
- return;
- }
- if ($this->properties['mesclar']) {
- $this->encontrarRegistros_para();
- Logger::end();
- $this->mesclar();
- } else {
- Logger::end();
- }
- } else if ($this->properties['atualizar']) {
- Logger::begin("registros do banco");
- if (!$this->encontrarRegistros_de()) {
- Logger::setAtivo(false);
- return;
- }
- if ($this->properties['comparar']) {
- $this->encontrarRegistros_para();
- Logger::end();
- $this->comparar();
- } else {
- Logger::end();
- }
- $this->atualizar();
- }
- $this->excluir();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement