| [ Index ] |
PHP Cross Reference of MyBB 1.8.39 |
[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.8| set_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. param: string $language The language to check for. return: boolean True when exists, false when does not exist. |
| 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 |
param: string $string return: string |
| get_languages($admin=false) X-Ref |
| Get the language variables for a section. param: boolean $admin Admin variables when true, user when false. return: array The language variables. |
| parse($contents) X-Ref |
| Parse contents for language variables. param: string $contents The contents to parse. return: string The parsed contents. |
| parse_replace($matches) X-Ref |
| Replace content with language variable. param: array $matches Matches. return: string Language variable. |
| 2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup | Cross-referenced by PHPXref |