BxBaseLabelsServices.php 635 B

12345678910111213141516171819202122232425262728293031
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaBaseView UNA Base Representation Classes
  7. * @{
  8. */
  9. /**
  10. * System services related to Languages.
  11. */
  12. class BxBaseLabelsServices extends BxDol
  13. {
  14. public function __construct()
  15. {
  16. parent::__construct();
  17. }
  18. public function serviceGetLabels()
  19. {
  20. $oLabel = BxDolLabel::getInstance();
  21. return [
  22. 'system' => $oLabel->getLabelsSystem(),
  23. 'context' => $oLabel->getLabelsContext()
  24. ];
  25. }
  26. }
  27. /** @} */