$situation->newSituation(); } elseif (isset($_POST["nameNewSystem"])) { $nameNewSystem = $_POST['nameNewSystem']; $system = new System(); $system->setName($nameNewSystem); $system->newSystem(); } elseif (isset($_POST["nameNewActor"])) { $nameNewActor = $_POST['nameNewActor']; $actor = new Actor(); $actor->setName($nameNewActor); $actor->newActor(); } elseif (isset($_POST["nameNewAutor"])) { $nameNewAutor = $_POST['nameNewAutor']; $autor = new Autor(); $autor->setName($nameNewAutor); $autor->newAutor(); } elseif (isset($_POST["nameUpdateCategory"])) { $nameUpdateCategory = $_POST['nameUpdateCategory']; $category = new Category(); $category->setName($nameUpdateCategory); $categoryId = $_SESSION["categoryId"]; $category->updateCategory($categoryId); } elseif (isset($_POST["nameUpdateObjective"])) { $nameUpdateObjective = $_POST['nameUpdateObjective']; $objective = new Objective(); $objective->setName($nameUpdateObjective); $objectiveId = $_SESSION["objectiveId"]; $objective->updateObjective($objectiveId); } elseif (isset($_POST["nameUpdateSituation"])) { $nameUpdateSituation = $_POST['nameUpdateSituation']; $situation = new Situation();