| @@ 376-389 (lines=14) @@ | ||
| 373 | return; |
|
| 374 | } |
|
| 375 | ||
| 376 | public function inactiveClient($id_cliente) |
|
| 377 | { |
|
| 378 | $dados['ativo'] = 0; |
|
| 379 | ||
| 380 | $this->Cliente->id = $id_cliente; |
|
| 381 | ||
| 382 | if ($this->Cliente->save($dados)) { |
|
| 383 | $this->response->body('{"message": "success", "result":'.json_encode($dados).'}'); |
|
| 384 | return; |
|
| 385 | } else { |
|
| 386 | $this->response->body('{"message": "error"}'); |
|
| 387 | return; |
|
| 388 | } |
|
| 389 | } |
|
| 390 | ||
| 391 | public function sendMail($dados) |
|
| 392 | { |
|
| @@ 482-495 (lines=14) @@ | ||
| 479 | return; |
|
| 480 | } |
|
| 481 | ||
| 482 | public function inactiveParent($id_parente) |
|
| 483 | { |
|
| 484 | $dados['ativo'] = 0; |
|
| 485 | ||
| 486 | $this->Parente->id = $id_parente; |
|
| 487 | ||
| 488 | if ($this->Parente->save($dados)) { |
|
| 489 | $this->response->body('{"message": "success", "result":'.json_encode($dados).'}'); |
|
| 490 | return; |
|
| 491 | } else { |
|
| 492 | $this->response->body('{"message": "error"}'); |
|
| 493 | return; |
|
| 494 | } |
|
| 495 | } |
|
| 496 | ||
| 497 | public function postConsulta($dados) |
|
| 498 | { |
|