Esempio n. 1
0
         $paragraph->SetOrder($para_order);
         $paragraph->SetUser($para_user_id);
         $paragraph->SetPage($para_page_id);
         if ($paragraph->Update()) {
             $message_position = 6;
             $message = $screen_module_name . " alterado com sucesso.";
         } else {
             $message_position = 6;
             $message = "Problemas na operação.";
         }
     }
 }
 if ($action == 4) {
     $paragraph = new Paragraph();
     $paragraph->SetDatabase($database);
     $paragraph->SetId($para_id);
     if ($paragraph->Delete()) {
         $date = new Date();
         $message_position = 6;
         $message = $screen_module_name . " excluído com sucesso.";
         $para_id = "";
         $para_text = "";
         $para_date = $date->GetNowFull();
         $para_order = "";
         $para_user_id = $guardian->GetUserId();
         $para_page_id = "";
     } else {
         $message_position = 6;
         $message = "Problemas na operação.";
     }
 }