ListsInterface.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Locale;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. interface ListsInterface extends OptionInterface
  12. {
  13. /**
  14. * Retrieve timezone option list
  15. *
  16. * @return array
  17. */
  18. public function getOptionTimezones();
  19. /**
  20. * Retrieve days of week option list
  21. *
  22. * @param bool $preserveCodes
  23. * @param bool $ucFirstCode
  24. *
  25. * @return array
  26. */
  27. public function getOptionWeekdays($preserveCodes = false, $ucFirstCode = false);
  28. /**
  29. * Retrieve country option list
  30. *
  31. * @return array
  32. */
  33. public function getOptionCountries();
  34. /**
  35. * Retrieve currency option list
  36. *
  37. * @return array
  38. */
  39. public function getOptionCurrencies();
  40. /**
  41. * Retrieve all currency option list
  42. *
  43. * @return array
  44. */
  45. public function getOptionAllCurrencies();
  46. /**
  47. * Returns the localized country name
  48. *
  49. * @param string $value Name to get detailed information about
  50. * @param string $locale Optional locale string
  51. * @return string
  52. */
  53. public function getCountryTranslation($value, $locale = null);
  54. }