This method is used to set the language used by phpCAS.
- Note
- Can be called only once.
- Parameters
-
$lang | a 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().
646 if (!is_object($PHPCAS_CLIENT)) {
647 phpCAS :: error(
'this method should not be called before ' . __CLASS__ .
'::client() or ' . __CLASS__ .
'::proxy()');
649 if (gettype(
$lang) !=
'string') {
650 phpCAS :: error(
'type mismatched for parameter $lang (should be `string\')');
652 $PHPCAS_CLIENT->setLang(
$lang);
$PHPCAS_CLIENT
This global variable is used by the interface class phpCAS.
error($msg)
This method is used by interface methods to print an error and where the function was originally call...