SettingModal.php 795 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Graphs\Settings;
  3. use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Modals\BaseEditModal;
  4. /**
  5. * Description of SettingModal
  6. *
  7. * @author inbs
  8. */
  9. class SettingModal extends BaseEditModal
  10. {
  11. protected $id = 'settingModal';
  12. protected $name = 'settingModal';
  13. protected $title = 'settingModal';
  14. protected $configFields = [];
  15. public function initContent()
  16. {
  17. $form = new SettingForm();
  18. $form->setConfigFields($this->configFields);
  19. $this->addForm($form);
  20. }
  21. public function setConfigFields($fieldsList = [])
  22. {
  23. if ($fieldsList)
  24. {
  25. $this->configFields = $fieldsList;
  26. }
  27. return $this;
  28. }
  29. }