public function create($formulation, $name, $description) { $this->checkFormulation($formulation); $this->nom = $formulation; $this->id = $this->add(); $profileDesc = new Profildesc(); $profileDesc->profil = $this->id; $profileDesc->titre = $name; $profileDesc->description = $description; $profileDesc->lang = ActionsLang::instance()->get_id_langue_courante(); $profileDesc->id = $profileDesc->add(); redirige("droits.php?profil=" . $this->id); }