Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

62 lines
1.8KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Definition;
  3. use Lc\SovBundle\Definition\AbstractSettingDefinition;
  4. class MerchantSettingDefinition extends AbstractSettingDefinition implements MerchantSettingDefinitionInterface
  5. {
  6. const CATEGORY_GENERAL = 'general';
  7. const CATEGORY_EMAIL = 'email';
  8. const SETTING_URL = 'url';
  9. const SETTING_EMAIL_SUBJECT_PREFIX = 'emailSubjectPrefix';
  10. const SETTING_EMAIL_FROM = 'emailFrom';
  11. const SETTING_EMAIL_FROM_NAME = 'emailFromName';
  12. const SETTING_EMAIL_CONTACT = 'emailContact';
  13. public function __construct()
  14. {
  15. $this
  16. ->addSettingText(
  17. [
  18. 'name' => self::SETTING_URL,
  19. 'category' => self::CATEGORY_GENERAL,
  20. ]
  21. );
  22. $this->addSettingText(
  23. [
  24. 'category' => self::CATEGORY_EMAIL,
  25. 'name' => self::SETTING_EMAIL_SUBJECT_PREFIX,
  26. ]
  27. );
  28. $this->addSettingText(
  29. [
  30. 'category' => self::CATEGORY_EMAIL,
  31. 'name' => self::SETTING_EMAIL_FROM,
  32. ]
  33. );
  34. $this->addSettingText(
  35. [
  36. 'category' => self::CATEGORY_EMAIL,
  37. 'name' => self::SETTING_EMAIL_FROM_NAME,
  38. ]
  39. );
  40. $this->addSettingText(
  41. [
  42. 'category' => self::CATEGORY_EMAIL,
  43. 'name' => self::SETTING_EMAIL_CONTACT,
  44. ]
  45. );
  46. }
  47. public function getCategories()
  48. {
  49. return [
  50. self::CATEGORY_GENERAL,
  51. self::CATEGORY_EMAIL,
  52. ];
  53. }
  54. }