BxBaseTemplateServices.php 784 B

1234567891011121314151617181920212223242526272829303132333435
  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 Templates.
  11. */
  12. class BxBaseTemplateServices extends BxDol
  13. {
  14. public function __construct()
  15. {
  16. parent::__construct();
  17. }
  18. public function serviceGetTemplates($bEnabledOnly = true, $bShortInfo = true)
  19. {
  20. $aValues = get_templates_array($bEnabledOnly, $bShortInfo);
  21. $aResult = array();
  22. foreach($aValues as $sKey => $sValue)
  23. $aResult[] = array(
  24. 'key' => $sKey,
  25. 'value' => $sValue
  26. );
  27. return $aResult;
  28. }
  29. }
  30. /** @} */