/**
  * Atualiza os dados do Registro
  * Envia para a função Save o id ($_POST['id'])
  */
 function updateAction()
 {
     try {
         if (!method_exists($this, 'Save')) {
             throw new Exception('Método Save não foi criado.');
         } else {
             $this->Save($this->voById((int) inputPost('id')));
         }
     } catch (Exception $ex) {
         exitJson($ex->getMessage(), 0);
     }
 }
Example #2
0
/**
 * 
 * @param mixed $Values
 * @param string $Result
 */
function json($Values, $Result = 0)
{
    exitJson($Values, $Result);
}