Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
helper.php
01 <?php
02 /**
03 *
04 * This file is part of the phpBB Forum Software package.
05 *
06 * @copyright (c) phpBB Limited <https://www.phpbb.com>
07 * @license GNU General Public License, version 2 (GPL-2.0)
08 *
09 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14 namespace phpbb\group;
15
16 class helper
17 {
18 /** @var \phpbb\language\language */
19 protected $language;
20
21 /**
22 * Constructor
23 *
24 * @param \phpbb\language\language $language Language object
25 */
26 public function __construct(\phpbb\language\language $language)
27 {
28 $this->language = $language;
29 }
30
31 /**
32 * @param $group_name string The stored group name
33 *
34 * @return string Group name or translated group name if it exists
35 */
36 public function get_name($group_name)
37 {
38 return $this->language->is_set('G_' . utf8_strtoupper($group_name)) ? $this->language->lang('G_' . utf8_strtoupper($group_name)) : $group_name;
39 }
40 }
41