phpDocumentor pivotx
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Class: Languages

Source Location: /modules/module_lang.php

Class Languages

Class Overview

The class that loads a language.

FIXME The class currently works with languages, not domains - as in Pivot 1.

Located in /modules/module_lang.php [line 137]



		
		
		
		

Properties

Methods

[ Top ]
Property Summary
mixed   $default  

[ Top ]
Method Summary
Languages   __construct()  
void   getCode()  
array   getLangs()   Gets a sorted list of the available language files.
void   getName()  
void   loadLanguage()   Loads the translations for a given language
void   switchLanguage()   Switches to the translations for the given language

[ Top ]
Properties
mixed   $default = 'en' [line 139]

[ Top ]
Methods
Constructor __construct  [line 141]

  Languages __construct( [ $language = '']  )

Parameters:
   $language: 


[ Top ]
getCode  [line 237]

  void getCode( )



[ Top ]
getLangs  [line 221]

  array getLangs( )

Gets a sorted list of the available language files.


API Tags:
Return:  of the available files and their names


[ Top ]
getName  [line 241]

  void getName( )



[ Top ]
loadLanguage  [line 175]

  void loadLanguage( $language  )

Loads the translations for a given language

Parameters:
   $language: 


[ Top ]
switchLanguage  [line 205]

  void switchLanguage( $language  )

Switches to the translations for the given language

Parameters:
   $language: 


[ Top ]

Documentation generated on Tue, 05 Sep 2017 01:06:07 +0200 by phpDocumentor 1.4.3