ILIAS
Release_3_10_x_branch Revision 61812
|
Class ilLanguageFile. More...
Public Member Functions | |
__construct ($a_file, $a_key="", $a_scope= 'global') | |
Constructor. | |
read () | |
Read a language file. | |
write () | |
Write a language file. | |
build () | |
Build and get the file content. | |
getErrorMessage () | |
Get the error message of the last read/write operation. | |
getAllParams () | |
Get array of all parameters. | |
getAllValues () | |
Get array of all values. | |
getAllComments () | |
Get array of all comments. | |
getParam ($a_name) | |
Get a single parameter. | |
getValue ($a_module, $a_identifier) | |
Get a single value. | |
getComment ($a_module, $a_identifier) | |
Get a single comment. | |
setParam ($a_name, $a_value) | |
Set a parameter. | |
setValue ($a_module, $a_identifier, $a_value) | |
Set a single value. | |
setAllValues ($a_values) | |
Set all values. | |
setComment ($a_module, $a_identifier, $a_value) | |
Set a single comment. |
Static Public Member Functions | |
static | _getGlobalLanguageFile ($a_lang_key) |
Read and get a global language file as object. |
Private Attributes | |
$lang_file | |
$lang_key | |
$scope | |
$separator | |
$comment_separator | |
$params = array() | |
$values = array() | |
$comments = array() | |
$error_message = "" |
Static Private Attributes | |
static | $global_file_objects = array() |
Created global file objects. |
Class ilLanguageFile.
Provides methods for working with language files: read, check and write content, comments and parameters
Definition at line 35 of file class.ilLanguageFile.php.
ilLanguageFile::__construct | ( | $a_file, | |
$a_key = "" , |
|||
$a_scope = 'global' |
|||
) |
Constructor.
string | language file path and name |
string | (optional) language key |
string | (optional) scope ('global', 'local' or 'unchanged') |
Definition at line 103 of file class.ilLanguageFile.php.
References $lng, and ILIAS_VERSION.
|
static |
Read and get a global language file as object.
string | language key |
Definition at line 384 of file class.ilLanguageFile.php.
References $lng.
Referenced by ilObjLanguageExt\_saveValues(), and ilObjLanguageExt\getGlobalLanguageFile().
ilLanguageFile::build | ( | ) |
Build and get the file content.
Definition at line 238 of file class.ilLanguageFile.php.
References $lng, $tpl, getAllParams(), and getAllValues().
Referenced by write().
ilLanguageFile::getAllComments | ( | ) |
Get array of all comments.
Definition at line 301 of file class.ilLanguageFile.php.
References $comments.
ilLanguageFile::getAllParams | ( | ) |
Get array of all parameters.
Definition at line 283 of file class.ilLanguageFile.php.
References $params.
Referenced by build().
ilLanguageFile::getAllValues | ( | ) |
Get array of all values.
Definition at line 292 of file class.ilLanguageFile.php.
References $values.
Referenced by build().
ilLanguageFile::getComment | ( | $a_module, | |
$a_identifier | |||
) |
Get a single comment.
string | module name |
string | indentifier |
Definition at line 333 of file class.ilLanguageFile.php.
ilLanguageFile::getErrorMessage | ( | ) |
Get the error message of the last read/write operation.
Definition at line 274 of file class.ilLanguageFile.php.
References $error_message.
ilLanguageFile::getParam | ( | $a_name | ) |
Get a single parameter.
string | parameter name |
Definition at line 311 of file class.ilLanguageFile.php.
ilLanguageFile::getValue | ( | $a_module, | |
$a_identifier | |||
) |
Get a single value.
string | module name |
string | indentifier |
Definition at line 322 of file class.ilLanguageFile.php.
ilLanguageFile::read | ( | ) |
Read a language file.
Definition at line 139 of file class.ilLanguageFile.php.
References $lng.
ilLanguageFile::setAllValues | ( | $a_values | ) |
Set all values.
array | module.separator.identifier => value |
Definition at line 363 of file class.ilLanguageFile.php.
ilLanguageFile::setComment | ( | $a_module, | |
$a_identifier, | |||
$a_value | |||
) |
Set a single comment.
string | module name |
string | indentifier |
string | comment |
Definition at line 374 of file class.ilLanguageFile.php.
ilLanguageFile::setParam | ( | $a_name, | |
$a_value | |||
) |
Set a parameter.
string | parameter name |
string | parameter value |
Definition at line 343 of file class.ilLanguageFile.php.
ilLanguageFile::setValue | ( | $a_module, | |
$a_identifier, | |||
$a_value | |||
) |
Set a single value.
string | module name |
string | indentifier |
string | value |
Definition at line 354 of file class.ilLanguageFile.php.
ilLanguageFile::write | ( | ) |
Write a language file.
Definition at line 227 of file class.ilLanguageFile.php.
References build().
|
private |
Definition at line 71 of file class.ilLanguageFile.php.
|
private |
Definition at line 89 of file class.ilLanguageFile.php.
Referenced by getAllComments().
|
private |
Definition at line 95 of file class.ilLanguageFile.php.
Referenced by getErrorMessage().
|
staticprivate |
|
private |
Definition at line 47 of file class.ilLanguageFile.php.
|
private |
Definition at line 53 of file class.ilLanguageFile.php.
|
private |
Definition at line 77 of file class.ilLanguageFile.php.
Referenced by getAllParams().
|
private |
Definition at line 59 of file class.ilLanguageFile.php.
|
private |
Definition at line 65 of file class.ilLanguageFile.php.
|
private |
Definition at line 83 of file class.ilLanguageFile.php.
Referenced by getAllValues().