Documentation

Settings_LangManagement_Module_Model extends Settings_Vtiger_Module_Model
in package

LangManagement Module Class.

Tags
copyright

YetiForce S.A.

license

YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)

author

YetiForce S.A.

Table of Contents

URL_SEPARATOR  = '__'
add()  : array<string|int, mixed>
Function added new language.
createCustomLangDirectory()  : mixed
Function creates directory structure.
delete()  : mixed
deleteDir()  : bool
Dedlete dir.
getModFromLang()  : array<string|int, mixed>
Get modules from language.
getStats()  : mixed
getStatsData()  : mixed
loadCustomLanguageFile()  : array<string|int, mixed>
Load custom languages data.
loadLangTranslation()  : array<string|int, mixed>
Function gets translations.
parseData()  : bool
Parse data.
setAsDefault()  : array<string|int, mixed>
Function to set language as default.

Constants

URL_SEPARATOR

public mixed URL_SEPARATOR = '__'

Methods

add()

Function added new language.

public static add(array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
$params : array<string|int, mixed>
Return values
array<string|int, mixed>

createCustomLangDirectory()

Function creates directory structure.

public static createCustomLangDirectory(array<string|int, mixed> $params) : mixed
Parameters
$params : array<string|int, mixed>
Tags
throws
AppException
Return values
mixed

delete()

public static delete(mixed $prefix) : mixed
Parameters
$prefix : mixed
Return values
mixed

deleteDir()

Dedlete dir.

public static deleteDir(string $dir) : bool
Parameters
$dir : string
Return values
bool

getModFromLang()

Get modules from language.

public getModFromLang(string $lang) : array<string|int, mixed>
Parameters
$lang : string
Return values
array<string|int, mixed>

getStats()

public getStats(mixed $data, mixed $langBase, mixed $byModule) : mixed
Parameters
$data : mixed
$langBase : mixed
$byModule : mixed
Return values
mixed

getStatsData()

public getStatsData(mixed $langBase, mixed $langs[, mixed $byModule = false ]) : mixed
Parameters
$langBase : mixed
$langs : mixed
$byModule : mixed = false
Return values
mixed

loadCustomLanguageFile()

Load custom languages data.

public loadCustomLanguageFile(array<string|int, mixed> $languages, string $moduleName) : array<string|int, mixed>
Parameters
$languages : array<string|int, mixed>
$moduleName : string
Return values
array<string|int, mixed>

loadLangTranslation()

Function gets translations.

public loadLangTranslation(array<string|int, string> $langs, string $moduleName) : array<string|int, mixed>
Parameters
$langs : array<string|int, string>
$moduleName : string
Return values
array<string|int, mixed>

parseData()

Parse data.

public static parseData(string $a, string $b) : bool
Parameters
$a : string
$b : string
Return values
bool

setAsDefault()

Function to set language as default.

public static setAsDefault(string $prefix) : array<string|int, mixed>
Parameters
$prefix : string
Return values
array<string|int, mixed>

        

Search results