ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
Internationalization
+ Collaboration diagram for Internationalization:

Functions

 phpCAS::setLang ($lang)
 This method is used to set the language used by phpCAS. More...
 

Variables

const PHPCAS_LANG_ENGLISH 'english'
 
const PHPCAS_LANG_FRENCH 'french'
 
const PHPCAS_LANG_GREEK 'greek'
 
const PHPCAS_LANG_GERMAN 'german'
 
const PHPCAS_LANG_JAPANESE 'japanese'
 
const PHPCAS_LANG_SPANISH 'spanish'
 
const PHPCAS_LANG_CATALAN 'catalan'
 
const PHPCAS_LANG_ENGLISH 'english'
 
const PHPCAS_LANG_FRENCH 'french'
 
const PHPCAS_LANG_GREEK 'greek'
 

Detailed Description

Function Documentation

◆ setLang()

phpCAS::setLang (   $lang)

This method is used to set the language used by phpCAS.

Note
Can be called only once.
Parameters
$langa string representing the language.
See also
PHPCAS_LANG_FRENCH, PHPCAS_LANG_ENGLISH

Definition at line 644 of file CAS.php.

References $lang, $PHPCAS_CLIENT, and phpCAS\error().

644  {
645  global $PHPCAS_CLIENT;
646  if (!is_object($PHPCAS_CLIENT)) {
647  phpCAS :: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
648  }
649  if (gettype($lang) != 'string') {
650  phpCAS :: error('type mismatched for parameter $lang (should be `string\')');
651  }
652  $PHPCAS_CLIENT->setLang($lang);
653  }
$PHPCAS_CLIENT
This global variable is used by the interface class phpCAS.
Definition: CAS.php:176
error($msg)
This method is used by interface methods to print an error and where the function was originally call...
Definition: CAS.php:544
+ Here is the call graph for this function:

Variable Documentation

◆ PHPCAS_LANG_CATALAN

const PHPCAS_LANG_CATALAN 'catalan'

Definition at line 234 of file CAS.php.

◆ PHPCAS_LANG_ENGLISH [1/2]

const PHPCAS_LANG_ENGLISH 'english'

Definition at line 146 of file CAS.php.

◆ PHPCAS_LANG_ENGLISH [2/2]

const PHPCAS_LANG_ENGLISH 'english'

Definition at line 228 of file CAS.php.

◆ PHPCAS_LANG_FRENCH [1/2]

const PHPCAS_LANG_FRENCH 'french'

Definition at line 147 of file CAS.php.

◆ PHPCAS_LANG_FRENCH [2/2]

const PHPCAS_LANG_FRENCH 'french'

Definition at line 229 of file CAS.php.

◆ PHPCAS_LANG_GERMAN

const PHPCAS_LANG_GERMAN 'german'

Definition at line 231 of file CAS.php.

◆ PHPCAS_LANG_GREEK [1/2]

const PHPCAS_LANG_GREEK 'greek'

Definition at line 148 of file CAS.php.

◆ PHPCAS_LANG_GREEK [2/2]

const PHPCAS_LANG_GREEK 'greek'

Definition at line 230 of file CAS.php.

◆ PHPCAS_LANG_JAPANESE

const PHPCAS_LANG_JAPANESE 'japanese'

Definition at line 232 of file CAS.php.

◆ PHPCAS_LANG_SPANISH

const PHPCAS_LANG_SPANISH 'spanish'

Definition at line 233 of file CAS.php.