@@ 657-666 (lines=10) @@ | ||
654 | * |
|
655 | * @sa PHPCAS_LANG_FRENCH, PHPCAS_LANG_ENGLISH |
|
656 | */ |
|
657 | function setLang($lang) |
|
658 | { |
|
659 | global $PHPCAS_CLIENT; |
|
660 | if (!is_object($PHPCAS_CLIENT)) { |
|
661 | phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()'); |
|
662 | } |
|
663 | if (gettype($lang) != 'string') { |
|
664 | phpCAS:: error('type mismatched for parameter $lang (should be `string\')'); |
|
665 | } |
|
666 | $PHPCAS_CLIENT->setLang($lang); |
|
667 | } |
|
668 | ||
669 | /** @} */ |
|
@@ 702-711 (lines=10) @@ | ||
699 | * |
|
700 | * @param $header the HTML header. |
|
701 | */ |
|
702 | function setHTMLHeader($header) |
|
703 | { |
|
704 | global $PHPCAS_CLIENT; |
|
705 | if (!is_object($PHPCAS_CLIENT)) { |
|
706 | phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()'); |
|
707 | } |
|
708 | if (gettype($header) != 'string') { |
|
709 | phpCAS:: error('type mismatched for parameter $header (should be `string\')'); |
|
710 | } |
|
711 | $PHPCAS_CLIENT->setHTMLHeader($header); |
|
712 | } |
|
713 | ||
714 | /** |
|
@@ 719-728 (lines=10) @@ | ||
716 | * |
|
717 | * @param $footer the HTML footer. |
|
718 | */ |
|
719 | function setHTMLFooter($footer) |
|
720 | { |
|
721 | global $PHPCAS_CLIENT; |
|
722 | if (!is_object($PHPCAS_CLIENT)) { |
|
723 | phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()'); |
|
724 | } |
|
725 | if (gettype($footer) != 'string') { |
|
726 | phpCAS:: error('type mismatched for parameter $footer (should be `string\')'); |
|
727 | } |
|
728 | $PHPCAS_CLIENT->setHTMLFooter($footer); |
|
729 | } |
|
730 | ||
731 | /** @} */ |
|
@@ 946-955 (lines=10) @@ | ||
943 | * |
|
944 | * @param $n an integer. |
|
945 | */ |
|
946 | function setCacheTimesForAuthRecheck($n) |
|
947 | { |
|
948 | global $PHPCAS_CLIENT; |
|
949 | if (!is_object($PHPCAS_CLIENT)) { |
|
950 | phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()'); |
|
951 | } |
|
952 | if (gettype($n) != 'integer') { |
|
953 | phpCAS:: error('type mismatched for parameter $header (should be `string\')'); |
|
954 | } |
|
955 | $PHPCAS_CLIENT->setCacheTimesForAuthRecheck($n); |
|
956 | } |
|
957 | ||
958 | /** |