Riferimenti per la classe language

Lista di tutti i membri.

Membri pubblici

 init ($lang, $altPath='')
 addModuleLabels ($arr, $prefix)
 hscAndCharConv ($lStr, $hsc)
 makeEntities ($str)
 JScharCode ($str)
 getLL ($index, $hsc=0)
 getLLL ($index, $LOCAL_LANG, $hsc=0)
 sL ($input, $hsc=0)
 loadSingleTableDescription ($table)
 includeLLFile ($fileRef, $setGlobal=1, $mergeLocalOntoDefault=0)
 readLLfile ($fileRef)
 localizedFileRef ($fileRef)
 init ($lang, $altPath='')
 addModuleLabels ($arr, $prefix)
 hscAndCharConv ($lStr, $hsc)
 makeEntities ($str)
 JScharCode ($str)
 getLL ($index, $hsc=0)
 getLLL ($index, $LOCAL_LANG, $hsc=0)
 sL ($input, $hsc=0)
 loadSingleTableDescription ($table)
 includeLLFile ($fileRef, $setGlobal=1, $mergeLocalOntoDefault=0)
 readLLfile ($fileRef)
 localizedFileRef ($fileRef)
 init ($lang, $altPath='')
 addModuleLabels ($arr, $prefix)
 hscAndCharConv ($lStr, $hsc)
 makeEntities ($str)
 JScharCode ($str)
 getLL ($index, $hsc=0)
 getLLL ($index, $LOCAL_LANG, $hsc=0)
 sL ($input, $hsc=0)
 loadSingleTableDescription ($table)
 includeLLFile ($fileRef, $setGlobal=1, $mergeLocalOntoDefault=0)
 readLLfile ($fileRef)
 localizedFileRef ($fileRef)

Attributi pubblici

 $lang = 'default'
 $langSplit = 'default'
 $charSet = 'iso-8859-1'
 $charSetArray = array()
 $typo3_help_url = 'http://www.typo3.com/man_uk/'
 $helpUrlArray
 $moduleLabels = Array()
 $langSplitIndex = 0
 $LL_files_cache = array()
 $LL_labels_cache = array()
 $origCharSet = ''
 $csConvObj

Descrizione Dettagliata

Definizione alla linea 89 del file lang.php.


Documentazione delle funzioni membro

language::addModuleLabels arr,
prefix
 

Adds labels and image references from the backend modules to the internal moduleLabels array

Parametri:
array Array with references to module labels, keys: ['labels']['tablabel'], ['labels']['tabdescr'], ['tabs']['tab']
string Module name prefix
Restituisce:
void
Vedi anche:
t3lib_loadModules

Definizione alla linea 182 del file lang.php.

Riferimenti $k.

language::addModuleLabels arr,
prefix
 

Adds labels and image references from the backend modules to the internal moduleLabels array

Parametri:
array Array with references to module labels, keys: ['labels']['tablabel'], ['labels']['tabdescr'], ['tabs']['tab']
string Module name prefix
Restituisce:
void
Vedi anche:
t3lib_loadModules

Definizione alla linea 182 del file lang.php.

Riferimenti $k.

language::addModuleLabels arr,
prefix
 

Adds labels and image references from the backend modules to the internal moduleLabels array

Parametri:
array Array with references to module labels, keys: ['labels']['tablabel'], ['labels']['tabdescr'], ['tabs']['tab']
string Module name prefix
Restituisce:
void
Vedi anche:
t3lib_loadModules

Definizione alla linea 182 del file lang.php.

Riferimenti $k.

language::getLL index,
hsc = 0
 

Returns the label with key $index form the globally loaded $LOCAL_LANG array. Mostly used from modules with only one LOCAL_LANG file loaded into the global space.

Parametri:
string Label key
boolean If set, the return value is htmlspecialchar'ed
Restituisce:
string

Definizione alla linea 259 del file lang.php.

Riferimenti $GLOBALS, $index, e lang.

language::getLL index,
hsc = 0
 

Returns the label with key $index form the globally loaded $LOCAL_LANG array. Mostly used from modules with only one LOCAL_LANG file loaded into the global space.

Parametri:
string Label key
boolean If set, the return value is htmlspecialchar'ed
Restituisce:
string

Definizione alla linea 259 del file lang.php.

Riferimenti $GLOBALS, $index, e lang.

language::getLL index,
hsc = 0
 

Returns the label with key $index form the globally loaded $LOCAL_LANG array. Mostly used from modules with only one LOCAL_LANG file loaded into the global space.

Parametri:
string Label key
boolean If set, the return value is htmlspecialchar'ed
Restituisce:
string

Definizione alla linea 259 del file lang.php.

Riferimenti $GLOBALS, $index, e lang.

language::getLLL index,
LOCAL_LANG,
hsc = 0
 

Works like ->getLL() but takes the $LOCAL_LANG array used as the second argument instead of using the global array.

Parametri:
string Label key
array $LOCAL_LANG array to get label key from
boolean If set, the return value is htmlspecialchar'ed
Restituisce:
string

Definizione alla linea 276 del file lang.php.

Riferimenti $index, $LOCAL_LANG, e lang.

language::getLLL index,
LOCAL_LANG,
hsc = 0
 

Works like ->getLL() but takes the $LOCAL_LANG array used as the second argument instead of using the global array.

Parametri:
string Label key
array $LOCAL_LANG array to get label key from
boolean If set, the return value is htmlspecialchar'ed
Restituisce:
string

Definizione alla linea 276 del file lang.php.

Riferimenti $index, $LOCAL_LANG, e lang.

language::getLLL index,
LOCAL_LANG,
hsc = 0
 

Works like ->getLL() but takes the $LOCAL_LANG array used as the second argument instead of using the global array.

Parametri:
string Label key
array $LOCAL_LANG array to get label key from
boolean If set, the return value is htmlspecialchar'ed
Restituisce:
string

Definizione alla linea 276 del file lang.php.

Riferimenti $index, $LOCAL_LANG, e lang.

language::hscAndCharConv lStr,
hsc
 

Will htmlspecialchar() the input string and before that any charset conversion will also have taken place if needed (see init()) Used to pipe language labels through just before they are returned.

Parametri:
string The string to process
boolean If set, then the string is htmlspecialchars()'ed
Restituisce:
string The processed string
Vedi anche:
init()

Definizione alla linea 208 del file lang.php.

language::hscAndCharConv lStr,
hsc
 

Will htmlspecialchar() the input string and before that any charset conversion will also have taken place if needed (see init()) Used to pipe language labels through just before they are returned.

Parametri:
string The string to process
boolean If set, then the string is htmlspecialchars()'ed
Restituisce:
string The processed string
Vedi anche:
init()

Definizione alla linea 208 del file lang.php.

language::hscAndCharConv lStr,
hsc
 

Will htmlspecialchar() the input string and before that any charset conversion will also have taken place if needed (see init()) Used to pipe language labels through just before they are returned.

Parametri:
string The string to process
boolean If set, then the string is htmlspecialchars()'ed
Restituisce:
string The processed string
Vedi anche:
init()

Definizione alla linea 208 del file lang.php.

language::includeLLFile fileRef,
setGlobal = 1,
mergeLocalOntoDefault = 0
 

Includes locallang file (and possibly additional localized version if configured for) Read language labels will be merged with $LOCAL_LANG (if $setGlobal=1).

Parametri:
string $fileRef is a file-reference (see t3lib_div::getFileAbsFileName)
boolean Setting in global variable $LOCAL_LANG (or returning the variable)
boolean If $mergeLocalOntoDefault is set the local part of the $LOCAL_LANG array is merged onto the default part (if the local part exists) and the local part is unset.
Restituisce:
mixed If $setGlobal is true the LL-files will set the $LOCAL_LANG in the global scope. Otherwise the $LOCAL_LANG array is returned from function

Definizione alla linea 392 del file lang.php.

Riferimenti $GLOBALS, $LOCAL_LANG, t3lib_div::array_merge_recursive_overrule(), e lang.

Questo è il grafo delle chiamate per questa funzione:

language::includeLLFile fileRef,
setGlobal = 1,
mergeLocalOntoDefault = 0
 

Includes locallang file (and possibly additional localized version if configured for) Read language labels will be merged with $LOCAL_LANG (if $setGlobal=1).

Parametri:
string $fileRef is a file-reference (see t3lib_div::getFileAbsFileName)
boolean Setting in global variable $LOCAL_LANG (or returning the variable)
boolean If $mergeLocalOntoDefault is set the local part of the $LOCAL_LANG array is merged onto the default part (if the local part exists) and the local part is unset.
Restituisce:
mixed If $setGlobal is true the LL-files will set the $LOCAL_LANG in the global scope. Otherwise the $LOCAL_LANG array is returned from function

Definizione alla linea 392 del file lang.php.

Riferimenti $GLOBALS, $LOCAL_LANG, t3lib_div::array_merge_recursive_overrule(), e lang.

Questo è il grafo delle chiamate per questa funzione:

language::includeLLFile fileRef,
setGlobal = 1,
mergeLocalOntoDefault = 0
 

Includes locallang file (and possibly additional localized version if configured for) Read language labels will be merged with $LOCAL_LANG (if $setGlobal=1).

Parametri:
string $fileRef is a file-reference (see t3lib_div::getFileAbsFileName)
boolean Setting in global variable $LOCAL_LANG (or returning the variable)
boolean If $mergeLocalOntoDefault is set the local part of the $LOCAL_LANG array is merged onto the default part (if the local part exists) and the local part is unset.
Restituisce:
mixed If $setGlobal is true the LL-files will set the $LOCAL_LANG in the global scope. Otherwise the $LOCAL_LANG array is returned from function

Definizione alla linea 392 del file lang.php.

Riferimenti $GLOBALS, $LOCAL_LANG, t3lib_div::array_merge_recursive_overrule(), e lang.

Questo è il grafo delle chiamate per questa funzione:

language::init lang,
altPath = ''
 

Initializes the backend language. This is for example done in typo3/template.php with lines like these:

require (PATH_typo3.'sysext/lang/lang.php'); $LANG = t3lib_div::makeInstance('language'); $LANG->init($BE_USER->uc['lang']);

Parametri:
string The language key (two character string from backend users profile)
string IGNORE. Not used.
Restituisce:
void

Definizione alla linea 137 del file lang.php.

Riferimenti $GLOBALS, $i, $lang, exit, lang, t3lib_div::makeInstance(), e t3lib_BEfunc::typo3PrintError().

Questo è il grafo delle chiamate per questa funzione:

language::init lang,
altPath = ''
 

Initializes the backend language. This is for example done in typo3/template.php with lines like these:

require (PATH_typo3.'sysext/lang/lang.php'); $LANG = t3lib_div::makeInstance('language'); $LANG->init($BE_USER->uc['lang']);

Parametri:
string The language key (two character string from backend users profile)
string IGNORE. Not used.
Restituisce:
void

Definizione alla linea 137 del file lang.php.

Riferimenti $GLOBALS, $i, $lang, exit, lang, t3lib_div::makeInstance(), e t3lib_BEfunc::typo3PrintError().

Questo è il grafo delle chiamate per questa funzione:

language::init lang,
altPath = ''
 

Initializes the backend language. This is for example done in typo3/template.php with lines like these:

require (PATH_typo3.'sysext/lang/lang.php'); $LANG = t3lib_div::makeInstance('language'); $LANG->init($BE_USER->uc['lang']);

Parametri:
string The language key (two character string from backend users profile)
string IGNORE. Not used.
Restituisce:
void

Definizione alla linea 137 del file lang.php.

Riferimenti $GLOBALS, $i, $lang, exit, lang, t3lib_div::makeInstance(), e t3lib_BEfunc::typo3PrintError().

Questo è il grafo delle chiamate per questa funzione:

language::JScharCode str  ) 
 

Converts the input string to a JavaScript function returning the same string, but charset-safe. Used for confirm and alert boxes where we must make sure that any string content does not break the script AND want to make sure the charset is preserved. Originally I used the JS function unescape() in combination with PHP function rawurlencode() in order to pass strings in a safe way. This could still be done for iso-8859-1 charsets but now I have applied the same method here for all charsets.

Parametri:
string Input string, encoded with $this->charSet
Restituisce:
string Output string, a JavaScript function: "String.fromCharCode(......)"

Definizione alla linea 240 del file lang.php.

language::JScharCode str  ) 
 

Converts the input string to a JavaScript function returning the same string, but charset-safe. Used for confirm and alert boxes where we must make sure that any string content does not break the script AND want to make sure the charset is preserved. Originally I used the JS function unescape() in combination with PHP function rawurlencode() in order to pass strings in a safe way. This could still be done for iso-8859-1 charsets but now I have applied the same method here for all charsets.

Parametri:
string Input string, encoded with $this->charSet
Restituisce:
string Output string, a JavaScript function: "String.fromCharCode(......)"

Definizione alla linea 240 del file lang.php.

language::JScharCode str  ) 
 

Converts the input string to a JavaScript function returning the same string, but charset-safe. Used for confirm and alert boxes where we must make sure that any string content does not break the script AND want to make sure the charset is preserved. Originally I used the JS function unescape() in combination with PHP function rawurlencode() in order to pass strings in a safe way. This could still be done for iso-8859-1 charsets but now I have applied the same method here for all charsets.

Parametri:
string Input string, encoded with $this->charSet
Restituisce:
string Output string, a JavaScript function: "String.fromCharCode(......)"

Definizione alla linea 240 del file lang.php.

language::loadSingleTableDescription table  ) 
 

Loading $TCA_DESCR[$table]['columns'] with content from locallang files as defined in $TCA_DESCR[$table]['refs'] $TCA_DESCR is a global var

Parametri:
string Table name found as key in global array $TCA_DESCR
Restituisce:
void

Definizione alla linea 340 del file lang.php.

Riferimenti $LOCAL_LANG, e $table.

language::loadSingleTableDescription table  ) 
 

Loading $TCA_DESCR[$table]['columns'] with content from locallang files as defined in $TCA_DESCR[$table]['refs'] $TCA_DESCR is a global var

Parametri:
string Table name found as key in global array $TCA_DESCR
Restituisce:
void

Definizione alla linea 340 del file lang.php.

Riferimenti $LOCAL_LANG, e $table.

language::loadSingleTableDescription table  ) 
 

Loading $TCA_DESCR[$table]['columns'] with content from locallang files as defined in $TCA_DESCR[$table]['refs'] $TCA_DESCR is a global var

Parametri:
string Table name found as key in global array $TCA_DESCR
Restituisce:
void

Definizione alla linea 340 del file lang.php.

Riferimenti $LOCAL_LANG, e $table.

language::localizedFileRef fileRef  ) 
 

Returns localized fileRef (.[langkey].php)

Parametri:
string Filename/path of a 'locallang.php' file
Restituisce:
string Input filename with a '.[lang-key].php' ending added if $this->lang is not 'default'

Definizione alla linea 447 del file lang.php.

Riferimenti lang, e php.

language::localizedFileRef fileRef  ) 
 

Returns localized fileRef (.[langkey].php)

Parametri:
string Filename/path of a 'locallang.php' file
Restituisce:
string Input filename with a '.[lang-key].php' ending added if $this->lang is not 'default'

Definizione alla linea 447 del file lang.php.

Riferimenti lang, e php.

language::localizedFileRef fileRef  ) 
 

Returns localized fileRef (.[langkey].php)

Parametri:
string Filename/path of a 'locallang.php' file
Restituisce:
string Input filename with a '.[lang-key].php' ending added if $this->lang is not 'default'

Definizione alla linea 447 del file lang.php.

Riferimenti lang, e php.

language::makeEntities str  ) 
 

Will convert the input strings special chars (all above 127) to entities. The string is expected to be encoded in the charset, $this->charSet This function is used to create strings that can be used in the Click Menu (Context Sensitive Menus). The reason is that the values that are dynamically written into the

layer is decoded as iso-8859-1 no matter what charset is used in the document otherwise (only MSIE, Mozilla is OK). So by converting we by-pass this problem.

Parametri:
string Input string
Restituisce:
string Output string

Definizione alla linea 223 del file lang.php.

language::makeEntities str  ) 
 

Will convert the input strings special chars (all above 127) to entities. The string is expected to be encoded in the charset, $this->charSet This function is used to create strings that can be used in the Click Menu (Context Sensitive Menus). The reason is that the values that are dynamically written into the

layer is decoded as iso-8859-1 no matter what charset is used in the document otherwise (only MSIE, Mozilla is OK). So by converting we by-pass this problem.

Parametri:
string Input string
Restituisce:
string Output string

Definizione alla linea 223 del file lang.php.

language::makeEntities str  ) 
 

Will convert the input strings special chars (all above 127) to entities. The string is expected to be encoded in the charset, $this->charSet This function is used to create strings that can be used in the Click Menu (Context Sensitive Menus). The reason is that the values that are dynamically written into the

layer is decoded as iso-8859-1 no matter what charset is used in the document otherwise (only MSIE, Mozilla is OK). So by converting we by-pass this problem.

Parametri:
string Input string
Restituisce:
string Output string

Definizione alla linea 223 del file lang.php.

language::readLLfile fileRef  ) 
 

Includes a locallang file and returns the $LOCAL_LANG array found inside.

Parametri:
string Input is a file-reference (see t3lib_div::getFileAbsFileName) which, if exists, is included. That file is expected to be a 'local_lang' file containing a $LOCAL_LANG array.
Restituisce:
array Value of $LOCAL_LANG found in the included file. If that array is found it's returned. Otherwise an empty array

Definizione alla linea 437 del file lang.php.

Riferimenti lang, e t3lib_div::readLLfile().

Questo è il grafo delle chiamate per questa funzione:

language::readLLfile fileRef  ) 
 

Includes a locallang file and returns the $LOCAL_LANG array found inside.

Parametri:
string Input is a file-reference (see t3lib_div::getFileAbsFileName) which, if exists, is included. That file is expected to be a 'local_lang' file containing a $LOCAL_LANG array.
Restituisce:
array Value of $LOCAL_LANG found in the included file. If that array is found it's returned. Otherwise an empty array

Definizione alla linea 437 del file lang.php.

Riferimenti lang, e t3lib_div::readLLfile().

Questo è il grafo delle chiamate per questa funzione:

language::readLLfile fileRef  ) 
 

Includes a locallang file and returns the $LOCAL_LANG array found inside.

Parametri:
string Input is a file-reference (see t3lib_div::getFileAbsFileName) which, if exists, is included. That file is expected to be a 'local_lang' file containing a $LOCAL_LANG array.
Restituisce:
array Value of $LOCAL_LANG found in the included file. If that array is found it's returned. Otherwise an empty array

Definizione alla linea 437 del file lang.php.

Riferimenti lang, e t3lib_div::readLLfile().

Questo è il grafo delle chiamate per questa funzione:

language::sL input,
hsc = 0
 

splitLabel function Historically labels were exploded by '|' and each part would correspond to the translation of the language found at the same 'index' in the TYPO3_languages constant. Today all translations are based on $LOCAL_LANG variables. 'language-splitted' labels can therefore refer to a local-lang file + index instead! It's highly recommended to use the 'local_lang' method (and thereby it's highly depreciated to use 'language-splitted' label strings) Refer to 'Inside TYPO3' for more details

Parametri:
string Label key/reference
boolean If set, the return value is htmlspecialchar'ed
Restituisce:
string

Definizione alla linea 296 del file lang.php.

Riferimenti $GLOBALS, $parts, t3lib_div::array_merge_recursive_overrule(), t3lib_div::deHSCentities(), e lang.

Questo è il grafo delle chiamate per questa funzione:

language::sL input,
hsc = 0
 

splitLabel function Historically labels were exploded by '|' and each part would correspond to the translation of the language found at the same 'index' in the TYPO3_languages constant. Today all translations are based on $LOCAL_LANG variables. 'language-splitted' labels can therefore refer to a local-lang file + index instead! It's highly recommended to use the 'local_lang' method (and thereby it's highly depreciated to use 'language-splitted' label strings) Refer to 'Inside TYPO3' for more details

Parametri:
string Label key/reference
boolean If set, the return value is htmlspecialchar'ed
Restituisce:
string

Definizione alla linea 296 del file lang.php.

Riferimenti $GLOBALS, $parts, t3lib_div::array_merge_recursive_overrule(), t3lib_div::deHSCentities(), e lang.

Questo è il grafo delle chiamate per questa funzione:

language::sL input,
hsc = 0
 

splitLabel function Historically labels were exploded by '|' and each part would correspond to the translation of the language found at the same 'index' in the TYPO3_languages constant. Today all translations are based on $LOCAL_LANG variables. 'language-splitted' labels can therefore refer to a local-lang file + index instead! It's highly recommended to use the 'local_lang' method (and thereby it's highly depreciated to use 'language-splitted' label strings) Refer to 'Inside TYPO3' for more details

Parametri:
string Label key/reference
boolean If set, the return value is htmlspecialchar'ed
Restituisce:
string

Definizione alla linea 296 del file lang.php.

Riferimenti $GLOBALS, $parts, t3lib_div::array_merge_recursive_overrule(), t3lib_div::deHSCentities(), e lang.

Questo è il grafo delle chiamate per questa funzione:


Documentazione dei dati membri

language::$charSet = 'iso-8859-1'
 

Definizione alla linea 94 del file lang.php.

language::$charSetArray = array()
 

Definizione alla linea 97 del file lang.php.

language::$csConvObj
 

Definizione alla linea 116 del file lang.php.

language::$helpUrlArray
 

Valore iniziale:

 array(
                'dk' => 'http://www.typo3.com/man_dk/',
        )

Definizione alla linea 102 del file lang.php.

language::$lang = 'default'
 

Definizione alla linea 90 del file lang.php.

Referenziato da init().

language::$langSplit = 'default'
 

Definizione alla linea 91 del file lang.php.

language::$langSplitIndex = 0
 

Definizione alla linea 110 del file lang.php.

language::$LL_files_cache = array()
 

Definizione alla linea 111 del file lang.php.

language::$LL_labels_cache = array()
 

Definizione alla linea 112 del file lang.php.

language::$moduleLabels = Array()
 

Definizione alla linea 107 del file lang.php.

language::$origCharSet = ''
 

Definizione alla linea 115 del file lang.php.

language::$typo3_help_url = 'http://www.typo3.com/man_uk/'
 

Definizione alla linea 100 del file lang.php.


La documentazione per questa classe è stata generata a partire dai seguenti file:
Generato il Thu Jan 19 15:28:22 2006 per TYPO3 versione 3.8.1 da  doxygen 1.4.6