[ Index ] |
PHP Cross Reference of MyBB 1.8.38 |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 255 lines (5 kb) |
Included or required: | 3 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
MyLanguage:: (8 methods):
set_path()
language_exists()
set_language()
load()
sprintf()
get_languages()
parse()
parse_replace()
Class: MyLanguage - X-Ref
MyBB 1.8set_path($path) X-Ref |
Set the path for the language folder. param: string $path The path to the language folder. |
language_exists($language) X-Ref |
Check if a specific language exists. return: boolean True when exists, false when does not exist. param: string $language The language to check for. |
set_language($language="", $area="user") X-Ref |
Set the language for an area. param: string $language The language to use. param: string $area The area to set the language for. |
load($section, $forceuserarea=false, $supress_error=false) X-Ref |
Load the language variables for a section. param: string $section The section name. param: boolean $forceuserarea Should use the user area even if in admin? For example for datahandlers param: boolean $supress_error supress the error if the file doesn't exist? |
sprintf($string) X-Ref |
return: string param: string $string |
get_languages($admin=false) X-Ref |
Get the language variables for a section. return: array The language variables. param: boolean $admin Admin variables when true, user when false. |
parse($contents) X-Ref |
Parse contents for language variables. return: string The parsed contents. param: string $contents The contents to parse. |
parse_replace($matches) X-Ref |
Replace content with language variable. return: string Language variable. param: array $matches Matches. |
2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup | Cross-referenced by PHPXref |