} } } } } } } } $aventurier->modifier(); $magies = Magie::Lister(); $dieux = Dieu::Lister(); include "view/ficheRapideModification.php"; } else { $message = "vous n'avez pas le bon code d'accès."; include "view/message.php"; } } } else { $armes = Arme::ListerBase(); $equipements = Equipement::ListerBase(); $protections = Protection::ListerBase(); $types_arme = Arme::ListerTypesArmeDeBase(); $types_protection = Protection::ListerTypesProtectionDeBase(); $types_equipement = Equipement::ListerTypesEquipementDeBase(); $metiers = Metier::Lister(); $origines = Origine::Lister(); $competences = Competence::Lister(); $magies = Magie::Lister(); $dieux = Dieu::Lister(); include "view/ficheRapide.php"; }
public function __set($var, $value) { if ($var == "ID_ORIGINE") { $this->ID_ORIGINE = $value; $origine = new Origine(); $origine->get_data_from_db($value); $this->ORIGINE = $origine; } else { if ($var == "ID_METIER") { $this->ID_METIER = $value; $metier = new Metier(); $metier->get_data_from_db($value); $this->METIER = $metier; } else { if ($var == "ID_DIEU") { $this->ID_DIEU = $value; $dieu = new Dieu(); $dieu->get_data_from_db($value); $this->DIEU = $dieu; } else { $this->{$var} = $value; } } } }