function __construct($type, $recup = '') { global $options; $options->checkOptionListe($type, 1); if ($recup) { $this->type = $type; } else { $droits = new clDroits("CHECK"); $droits->checkDroit("Administration_" . $type, "Administration : Gestion de la liste complexe '{$type}'"); $this->type = $type; $this->setAffichage(); } }
function setDroits() { $droits = new clDroits($this->user['idgroupe']); $this->droits = $droits->getDroits(); }