public function __construct($aGroups) { if (!$aGroups) { throw new Exception('Empty groups'); } $this->defineGroups($aGroups); $this->loadLang(); $this->loadStoredData(); self::$oLayout = new InstallTemplate('layout.tpl.php'); }