| 123456789101112131415161718192021222324252627282930313233 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
- * CC-BY License - http://creativecommons.org/licenses/by/3.0/
- *
- * @defgroup DolphinCore Dolphin Core
- * @{
- */
- /**
- * System services related to Languages.
- */
- class BxBaseLanguagesServices extends BxDol {
- public function __construct() {
- parent::__construct();
- }
- public function serviceGetLanguages($bIdAsKey = false, $bActiveOnly = false) {
- bx_import('BxDolLanguages');
- $aValues = BxDolLanguages::getInstance()->getLanguages($bIdAsKey, $bActiveOnly);
- $aResult = array();
- foreach($aValues as $sKey => $sValue)
- $aResult[] = array(
- 'key' => $sKey,
- 'value' => $sValue
- );
- return $aResult;
- }
- }
- /** @} */
|