Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe AKText
+ Graphe d'héritage de AKText:

Fonctions membres publiques

 __construct ()
 
 getBrowserLanguage ()
 
 dumpLanguage ()
 
 asJavascript ()
 
 resetTranslation ()
 
 addDefaultLanguageStrings ($stringList=array())
 
- Fonctions membres publiques hérités de AKAbstractObject
 getError ($i=null)
 
 getErrors ()
 
 resetErrors ()
 
 getWarning ($i=null)
 
 getWarnings ()
 
 resetWarnings ()
 
 propagateToObject (&$object)
 
 propagateFromObject (&$object)
 
 setError ($error)
 
 setWarning ($warning)
 

Fonctions membres publiques statiques

static parse_ini_file ($file, $process_sections=false, $raw_data=false)
 
static sprintf ($key)
 
static & getInstance ()
 
static _ ($string)
 

Fonctions membres privées

 loadTranslation ($lang=null)
 

Attributs privés

 $default_translation
 
 $strings
 
 $language
 

Membres hérités additionnels

- Fonctions membres protégées hérités de AKAbstractObject
 setErrorsQueueSize ($newSize=0)
 
 setWarningsQueueSize ($newSize=0)
 
- Attributs protégés hérités de AKAbstractObject
 $_errors_queue_size = 0
 
 $_warnings_queue_size = 0
 

Description détaillée

A simple INI-based i18n engine

Documentation des constructeurs et destructeur

◆ __construct()

Documentation des fonctions membres

◆ _()

◆ addDefaultLanguageStrings()

addDefaultLanguageStrings (   $stringList = array())

◆ asJavascript()

asJavascript ( )

Références $key, et $value.

◆ dumpLanguage()

dumpLanguage ( )

Références $key, et $value.

◆ getBrowserLanguage()

getBrowserLanguage ( )

Références language, et null.

Référencé par __construct().

◆ getInstance()

static& getInstance ( )
static

Singleton pattern for Language

Renvoie
AKText The global AKText instance

◆ loadTranslation()

loadTranslation (   $lang = null)
private

Références $lang, $language, et DIRECTORY_SEPARATOR.

Référencé par __construct().

◆ parse_ini_file()

static parse_ini_file (   $file,
  $process_sections = false,
  $raw_data = false 
)
static

A PHP based INI file parser.

Thanks to asohn ~at~ aircanopy ~dot~ net for posting this handy function on the parse_ini_file page on http://gr.php.net/parse_ini_file

Paramètres
string$fileFilename to process
bool$process_sectionsTrue to also process INI sections
Renvoie
array An associative array of sections, keys and values private

Références $file, $i, $key, $tmp, $value, et elseif.

◆ resetTranslation()

resetTranslation ( )

Références $default_translation.

◆ sprintf()

Documentation des champs

◆ $default_translation

$default_translation
private
Valeur initiale :
= array(
'ERR_NOT_A_JPA_FILE' => 'The file is not a JPA archive',
'ERR_CORRUPT_ARCHIVE' => 'The archive file is corrupt, truncated or archive parts are missing',
'ERR_INVALID_LOGIN' => 'Invalid login',
'COULDNT_CREATE_DIR' => 'Could not create %s folder',
'COULDNT_WRITE_FILE' => 'Could not open %s for writing.',
'INVALID_FILE_HEADER' => 'Invalid header in archive file, part %s, offset %s',
'ERR_COULD_NOT_OPEN_ARCHIVE_PART' => 'Could not open archive part file %s for reading. Check that the file exists, is readable by the web server and is not in a directory made out of reach by chroot, open_basedir restrictions or any other restriction put in place by your host.',
)

Référencé par __construct(), et resetTranslation().

◆ $language

$language
private

Référencé par loadTranslation().

◆ $strings

$strings
private

La documentation de cette classe a été générée à partir du fichier suivant :