1 <?php
2 /**
3 * @package Joomla.Platform
4 * @subpackage Language
5 *
6 * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE
8 */
9
10 defined('JPATH_PLATFORM') or die;
11
12 /**
13 * Wrapper class for JLanguageHelper
14 *
15 * @package Joomla.Platform
16 * @subpackage Language
17 * @since 3.4
18 */
19 class JLanguageWrapperHelper
20 {
21 /**
22 * Helper wrapper method for createLanguageList
23 *
24 * @param string $actualLanguage Client key for the area.
25 * @param string $basePath Base path to use.
26 * @param boolean $caching True if caching is used.
27 * @param boolean $installed Get only installed languages.
28 *
29 * @return array List of system languages.
30 *
31 * @see JLanguageHelper::createLanguageList
32 * @since 3.4
33 */
34 public function createLanguageList($actualLanguage, $basePath = JPATH_BASE, $caching = false, $installed = false)
35 {
36 return JLanguageHelper::createLanguageList($actualLanguage, $basePath, $caching, $installed);
37 }
38
39 /**
40 * Helper wrapper method for detectLanguage
41 *
42 * @return string locale or null if not found.
43 *
44 * @see JLanguageHelper::detectLanguage
45 * @since 3.4
46 */
47 public function detectLanguage()
48 {
49 return JLanguageHelper::detectLanguage();
50 }
51
52 /**
53 * Helper wrapper method for getLanguages
54 *
55 * @param string $key Array key
56 *
57 * @return array An array of published languages.
58 *
59 * @see JLanguageHelper::getLanguages
60 * @since 3.4
61 */
62 public function getLanguages($key = 'default')
63 {
64 return JLanguageHelper::getLanguages($key);
65 }
66 }
67