addSettingSelect( [ 'category' => self::CATEGORY_GENERAL, 'name' => self::SETTING_MAINTENANCE, 'choices' => [ 'Non' => 0, 'Oui' => 1, ] ] ); $this->addSettingText( [ 'category' => self::CATEGORY_GENERAL, 'name' => self::SETTING_MAINTENANCE_IP_AUTHORIZED, ] ); } public function getCategories() { return [ self::CATEGORY_GENERAL ]; } }