[ Index ]

PHP Cross Reference of phpBB-3.3.0-deutsch

title

Body

[close]

/phpbb/language/ -> language_file_loader.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 207 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

language_file_loader:: (7 methods):
  __construct()
  set_extension_manager()
  load()
  load_extension()
  load_file()
  get_language_file_path()
  load_language_file()


Class: language_file_loader  - X-Ref

Language file loader

__construct($phpbb_root_path, $php_ext)   X-Ref
Constructor

param: string    $phpbb_root_path    Path to phpBB's root
param: string    $php_ext            Extension of PHP files

set_extension_manager(\phpbb\extension\manager $extension_manager)   X-Ref
Extension manager setter

param: \phpbb\extension\manager    $extension_manager    Extension manager

load($component, $locale, &$lang)   X-Ref
Loads language array for the given component

param: string        $component    Name of the language component
param: string|array    $locale        ISO code of the language to load, or array of ISO codes if you want to
param: array            $lang        Array reference containing language strings

load_extension($extension, $component, $locale, &$lang)   X-Ref
Loads language array for the given extension component

param: string        $extension    Name of the extension
param: string        $component    Name of the language component
param: string|array    $locale        ISO code of the language to load, or array of ISO codes if you want to
param: array            $lang        Array reference containing language strings

load_file($path, $component, $locale, &$lang)   X-Ref
Prepares language file loading

param: string    $path        Path to search for file in
param: string    $component    Name of the language component
param: array        $locale        Array containing language fallback options
param: array        $lang        Array reference of language strings

get_language_file_path($path, $filename, $locales)   X-Ref
This function implements language fallback logic

return: string    Relative path to language file
param: string    $path        Path to language directory
param: string    $filename    Filename to load language strings from
param: array        $locales    Array containing language fallback options

load_language_file($path, &$lang)   X-Ref
Loads language file

param: string    $path    Path to language file to load
param: array        $lang    Reference of the array of language strings



Generated: Tue Apr 7 19:44:41 2020 Cross-referenced by PHPXref 0.7.1