Browse Source

[Technique] Paramètres : nouveau système de settings

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
9192bc5be0
2 changed files with 0 additions and 19 deletions
  1. +0
    -2
      common/logic/Setting/SettingDetails/Admin/AdminSettingDefinition.php
  2. +0
    -17
      common/logic/Setting/SettingDetails/Admin/General/TestToggleAdminSetting.php

+ 0
- 2
common/logic/Setting/SettingDetails/Admin/AdminSettingDefinition.php View File

use common\logic\Setting\SettingDefinition; use common\logic\Setting\SettingDefinition;
use common\logic\Setting\SettingDetails\Admin\General\AdministratorEmailAdminSetting; use common\logic\Setting\SettingDetails\Admin\General\AdministratorEmailAdminSetting;
use common\logic\Setting\SettingDetails\Admin\General\AdministratorPhoneNumberAdminSetting; use common\logic\Setting\SettingDetails\Admin\General\AdministratorPhoneNumberAdminSetting;
use common\logic\Setting\SettingDetails\Admin\General\TestToggleAdminSetting;


class AdminSettingDefinition extends SettingDefinition class AdminSettingDefinition extends SettingDefinition
{ {
self::SUBSECTION_GENERAL => [ self::SUBSECTION_GENERAL => [
new AdministratorEmailAdminSetting, new AdministratorEmailAdminSetting,
new AdministratorPhoneNumberAdminSetting, new AdministratorPhoneNumberAdminSetting,
new TestToggleAdminSetting,
] ]
], ],
]; ];

+ 0
- 17
common/logic/Setting/SettingDetails/Admin/General/TestToggleAdminSetting.php View File

<?php

namespace common\logic\Setting\SettingDetails\Admin\General;

use common\logic\Setting\SettingDetails\AbstractSettingDetail;

class TestToggleAdminSetting extends AbstractSettingDetail
{
public function __construct()
{
$this
->setName('testToggle')
->setLabel("Activer cette option")
->setTypeBoolean()
->setFormTypeToggle();
}
}

Loading…
Cancel
Save