/** * * @return \ActionsAdminCaracteristique */ public static function getInstance() { if (self::$instance === false) { self::$instance = new ActionsAdminCaracteristique(); } return self::$instance; }
<?php require_once "auth.php"; require_once "../fonctions/divers.php"; if (!est_autorise("acces_configuration")) { exit; } $request = \Symfony\Component\HttpFoundation\Request::createFromGlobals(); try { ActionsAdminCaracteristique::getInstance()->action($request); } catch (TheliaAdminException $e) { Tlog::error($e->getMessage()); } if (false === ($lang = $request->get("lang", false))) { $lang = ActionsAdminLang::instance()->get_id_langue_courante(); } $caract = new Caracteristique($request->get("id")); $caractDisp = new Caracteristiquedesc($caract->id, $lang); ?> <!DOCTYPE html> <html lang="fr"> <head> <?php require_once "title.php"; ?> </head> <body> <?php ActionsAdminModules::instance()->inclure_module_admin("caracteristique_modifier_top"); $menu = "configuration"; $breadcrumbs = Breadcrumb::getInstance()->getCaracList($caractDisp->titre);