setLang() public méthode

This method is used to set the language used by phpCAS.
public setLang ( string $lang ) : void
$lang string representing the language.
Résultat void
Exemple #1
0
 /**
  * This method is used to set the language used by phpCAS.
  *
  * @param string $lang string representing the language.
  *
  * @return void
  *
  * @sa PHPCAS_LANG_FRENCH, PHPCAS_LANG_ENGLISH
  * @note Can be called only once.
  */
 public static function setLang($lang)
 {
     phpCAS::_validateClientExists();
     try {
         self::$_PHPCAS_CLIENT->setLang($lang);
     } catch (Exception $e) {
         phpCAS::error(get_class($e) . ': ' . $e->getMessage());
     }
 }