| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace ThurData\Servers\KerioEmail\Core\UI\Widget\Graphs\Settings;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ButtonDatatableModalContextLang;
- /**
- * Description of SettingButton
- *
- * @autor ThurData <info@thrudata.ch>
- */
- class SettingButton extends ButtonDatatableModalContextLang
- {
- protected $id = 'settingButton';
- protected $name = 'settingButton';
- protected $title = 'settingButton';
- protected $icon = 'lu-btn__icon lu-zmdi lu-zmdi-edit';
- protected $configFields = [];
-
- public function initContent()
- {
- $modal = new SettingModal();
- $modal->setConfigFields($this->configFields);
- $this->initLoadModalAction($modal);
- }
-
- public function addNamespaceScope($namespaceScope = null)
- {
- $this->namespaceScope = $namespaceScope;
-
- return $this;
- }
-
- public function getNamespace()
- {
- if ($this->namespaceScope)
- {
- return $this->namespaceScope;
- }
-
- return parent::getNamespace();
- }
-
- public function setConfigFields($fieldsList = [])
- {
- if ($fieldsList)
- {
- $this->configFields = $fieldsList;
- }
-
- return $this;
- }
- }
|