PHP 클래스 phpbb\language\language_file_loader

파일 보기 프로젝트 열기: phpbb/phpbb

보호된 프로퍼티들

프로퍼티 타입 설명
$extension_manager Extension manager
$php_ext Extension of PHP files
$phpbb_root_path Path to phpBB's root

공개 메소드들

메소드 설명
__construct ( string $phpbb_root_path, string $php_ext ) Constructor
load ( string $component, string | array $locale, array &$lang ) Loads language array for the given component
load_extension ( string $extension, string $component, string | array $locale, array &$lang ) Loads language array for the given extension component
set_extension_manager ( phpbb\extension\manager $extension_manager ) Extension manager setter

보호된 메소드들

메소드 설명
get_language_file_path ( string $path, string $filename, $locales ) : string This function implements language fallback logic
load_file ( string $path, string $component, array $locale, array &$lang ) Prepares language file loading
load_language_file ( string $path, array &$lang ) Loads language file

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $phpbb_root_path, string $php_ext )
$phpbb_root_path string Path to phpBB's root
$php_ext string Extension of PHP files

get_language_file_path() 보호된 메소드

This function implements language fallback logic
protected get_language_file_path ( string $path, string $filename, $locales ) : string
$path string Path to language directory
$filename string Filename to load language strings from
리턴 string Relative path to language file

load() 공개 메소드

Loads language array for the given component
public load ( string $component, string | array $locale, array &$lang )
$component string Name of the language component
$locale string | array ISO code of the language to load, or array of ISO codes if you want to specify additional language fallback steps
$lang array Array reference containing language strings

load_extension() 공개 메소드

Loads language array for the given extension component
public load_extension ( string $extension, string $component, string | array $locale, array &$lang )
$extension string Name of the extension
$component string Name of the language component
$locale string | array ISO code of the language to load, or array of ISO codes if you want to specify additional language fallback steps
$lang array Array reference containing language strings

load_file() 보호된 메소드

Prepares language file loading
protected load_file ( string $path, string $component, array $locale, array &$lang )
$path string Path to search for file in
$component string Name of the language component
$locale array Array containing language fallback options
$lang array Array reference of language strings

load_language_file() 보호된 메소드

Loads language file
protected load_language_file ( string $path, array &$lang )
$path string Path to language file to load
$lang array Reference of the array of language strings

set_extension_manager() 공개 메소드

Extension manager setter
public set_extension_manager ( phpbb\extension\manager $extension_manager )
$extension_manager phpbb\extension\manager Extension manager

프로퍼티 상세

$extension_manager 보호되어 있는 프로퍼티

Extension manager
protected $extension_manager

$php_ext 보호되어 있는 프로퍼티

Extension of PHP files
protected $php_ext

$phpbb_root_path 보호되어 있는 프로퍼티

Path to phpBB's root
protected $phpbb_root_path