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