$paragraph->SetDate($date->GetDate()); $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."; }
function DropTables() { $moderator = new Moderator(); $moderator->SetDatabase($this); $moderator->Drop(); $message = new Message(); $message->SetDatabase($this); $message->Drop(); $topic = new Topic(); $topic->SetDatabase($this); $topic->Drop(); $user_info = new UserInfo(); $user_info->SetDatabase($this); $user_info->Drop(); $session = new Session(); $session->SetDatabase($this); $session->Drop(); $new = new News(); $new->SetDatabase($this); $new->Drop(); $shout = new Shout(); $shout->SetDatabase($this); $shout->Drop(); $paragraph = new Paragraph(); $paragraph->SetDatabase($this); $paragraph->Drop(); $privilege = new Privilege(); $privilege->SetDatabase($this); $privilege->Drop(); $role = new Role(); $role->SetDatabase($this); $role->Drop(); $menu_item = new MenuItem(); $menu_item->SetDatabase($this); $menu_item->Drop(); $module = new Module(); $module->SetDatabase($this); $module->Drop(); $page = new Page(); $page->SetDatabase($this); $page->Drop(); $article = new Article(); $article->SetDatabase($this); $article->Drop(); $subject = new Subject(); $subject->SetDatabase($this); $subject->Drop(); $menu = new Menu(); $menu->SetDatabase($this); $menu->Drop(); $profile = new Profile(); $profile->SetDatabase($this); $profile->Drop(); $user = new User(); $user->SetDatabase($this); $user->Drop(); }