Exemplo n.º 1
0
} elseif (isset($_POST["nameUpdateSystem"])) {
    $nameUpdateSystem = $_POST['nameUpdateSystem'];
    $system = new System();
    $system->setName($nameUpdateSystem);
    $systemId = $_SESSION["systemId"];
    $system->updateSystem($systemId);
} elseif (isset($_POST["nameUpdateAutor"])) {
    $nameUpdateAutor = $_POST['nameUpdateAutor'];
    $autor = new Autor();
    $autor->setName($nameUpdateAutor);
    $autorId = $_SESSION["autorId"];
    $autor->updateAutor($autorId);
} elseif (isset($_POST["nameUpdateActor"])) {
    $nameUpdateActor = $_POST['nameUpdateActor'];
    $actor = new Actor();
    $actor->setName($nameUpdateActor);
    $actorId = $_SESSION["actorId"];
    $actor->updateActor($actorId);
}
$categoryList = Category::getAllCategory();
$_SESSION['categoryList'] = $categoryList;
$objectiveList = Objective::getAllObjective();
$_SESSION['objectiveList'] = $objectiveList;
$systemList = System::getAllSystem();
$_SESSION['systemList'] = $systemList;
$situationList = Situation::getAllSituation();
$_SESSION['situationList'] = $situationList;
$actorList = Actor::getAllActor();
$_SESSION['actorList'] = $actorList;
$autorList = Autor::getAllAutor();
$_SESSION['autorList'] = $autorList;