|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?php
-
- namespace Lc\CaracoleBundle\Definition;
-
- use Lc\SovBundle\Definition\AbstractSettingDefinition;
-
- class SectionSettingDefinition extends AbstractSettingDefinition
- {
- const CATEGORY_GENERAL = 'general';
-
- const SETTING_REFERENCE_PREFIX = 'orderReferencePrefix';
- const SETTING_ORDER_STATE = 'orderState';
- const SETTING_ORDER_CLOSED_START = 'orderClosedStart';
- const SETTING_ORDER_CLOSED_END = 'orderClosedEnd';
- const SETTING_ORDER_MAXIMUM_PER_CYCLE = 'orderMaximumPerCycle';
- const SETTING_OPENING_TEXT_CLOSED = 'openingTextClosed';
-
- const VALUE_ORDER_STATE_DEFAULT = 'default';
- const VALUE_ORDER_STATE_OPEN = 'open';
- const VALUE_ORDER_STATE_CLOSED = 'closed';
-
- public function __construct()
- {
- $this->addSettingText(
- [
- 'name' => self::SETTING_REFERENCE_PREFIX,
- 'category' => self::CATEGORY_GENERAL,
- ]
- );
-
- $this->addSettingSelect(
- [
- 'name' => self::SETTING_ORDER_STATE,
- 'category' => self::CATEGORY_GENERAL,
- 'choices' => [
- 'Suivant configuration ouvertures' => self::VALUE_ORDER_STATE_DEFAULT,
- 'Ouvertes' => self::VALUE_ORDER_STATE_OPEN,
- 'Fermées' => self::VALUE_ORDER_STATE_CLOSED,
- ],
- 'default' => self::VALUE_ORDER_STATE_DEFAULT
- ]
- );
-
- $this->addSettingDate(
- [
- 'name' => self::SETTING_ORDER_CLOSED_START,
- 'category' => self::CATEGORY_GENERAL,
- ]
- );
-
- $this->addSettingDate(
- [
- 'name' => self::SETTING_ORDER_CLOSED_END,
- 'category' => self::CATEGORY_GENERAL,
- ]
- );
-
- $this->addSettingText(
- [
- 'category' => self::CATEGORY_GENERAL,
- 'name' => self::SETTING_OPENING_TEXT_CLOSED
- ]
- );
-
- $this->addSettingText(
- [
- 'name' => self::SETTING_ORDER_MAXIMUM_PER_CYCLE,
- 'category' => self::CATEGORY_GENERAL,
- ]
- );
-
- /*$this->addSettingText(
- [
- 'name' => self::SETTING_COLOR_PRIMARY,
- 'category' => self::CATEGORY_GENERAL,
- ]
- );
- $this->addSettingText(
- [
- 'name' => self::SETTING_COLOR_SECONDARY,
- 'category' => self::CATEGORY_GENERAL,
- ]
- );*/
- }
-
- public function getCategories()
- {
- return [
- self::CATEGORY_GENERAL,
- ];
- }
-
- }
|