Exemple #1
0
    $situation = new Situation();
    $situation->setName($nameUpdateSituation);
    $situationId = $_SESSION["situationId"];
    $situation->updateSituation($situationId);
} 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;