[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/inc/ -> class_language.php (summary)

(no description)

File Size: 239 lines (5 kb)
Included or required: 3 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MyLanguage:: (8 methods):
  set_path()
  language_exists()
  set_language()
  load()
  sprintf()
  get_languages()
  parse()
  parse_replace()


Class: MyLanguage  - X-Ref

MyBB 1.6
Copyright 2010 MyBB Group, All Rights Reserved

Website: http://mybb.com
License: http://mybb.com/about/license

$Id$
set_path($path)   X-Ref
Set the path for the language folder.

param: string The path to the language folder.

language_exists($language)   X-Ref
Check if a specific language exists.

param: string The language to check for.
return: boolean True when exists, false when does not exist.

set_language($language="english", $area="user")   X-Ref
Set the language for an area.

param: string The language to use.
param: string The area to set the language for.

load($section, $isdatahandler=false, $supress_error=false)   X-Ref
Load the language variables for a section.

param: string The section name.
param: boolean Is this a datahandler?
param: boolean supress the error if the file doesn't exist?

sprintf($string)   X-Ref
No description

get_languages($admin=0)   X-Ref
Get the language variables for a section.

param: boolean Admin variables when true, user when false.
return: array The language variables.

parse($contents)   X-Ref
Parse contents for language variables.

param: string The contents to parse.
return: string The parsed contents.

parse_replace($matches)   X-Ref
Replace content with language variable.

param: array Matches.
return: string Language variable.



Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1