Class: Language

Class:Language
Description:Class for languages
File:/include/language.php
CVS Version:1.7
CVS Modification:2004-01-19 18:40
Variables:
NameTypeDefaultDescription
iIdInteger0id in database
sTitleStringLanguage-title (ie: English)
sIdentifierStringLanguage identifier (ie: en)
bIsLoadedBooleanfalseIs the class loaded from the database? (not always so)
sDateFormatStringDate-format for this language (ie: Y-m-d)
sDateTimeFormatStringSame as sDateFormat but with time (ie: Y-m-d
sShortLangString
aWordCacheArrayfalse
sFilePathString

Language

Description:Constructor
Returns: [Undefined]
Arguments:
NameTypeOptionalDescription
iLanguageIDInteger YES [0] [optional] language-id

bGetWords

Description:
Returns: [Boolean]
Arguments:
NameTypeOptionalDescription

bGetById

Description:Get the language from the database
Returns: [Boolean] true on success
Arguments:
NameTypeOptionalDescription
iIDInteger YES [0]

bFetchObject

Description:Fetches the database-array to the current object
Returns: [Boolean] true on success
Arguments:
NameTypeOptionalDescription
aLanguageArrayDB-Array to fetch

sTranslate

Description:Translate words to current language
Returns: [String] Translated word
Arguments:
NameTypeOptionalDescription
sWordStringWord to translate

sGetDate

Description:Localize date/time
Returns: [String] Localized Formated date/time
Arguments:
NameTypeOptionalDescription
iDateInteger YES [-1] [optional] UNIX-time ot format Default current time
bGetTimeBoolean YES [true] [optional] Get time? default true

bGetByBrowserLanguage

Description:
Returns: [Boolean]
Arguments:
NameTypeOptionalDescription