phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
self::error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
}
if (gettype($lang) != 'string') {
phpCAS:: error('type mismatched for parameter $lang (should be `string\')');
self::error('type mismatched for parameter $lang (should be `string\')');
}
$PHPCAS_CLIENT->setLang($lang);
}
@ -703,10 +703,10 @@ class phpCAS
{
global $PHPCAS_CLIENT;
if (!is_object($PHPCAS_CLIENT)) {
phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
self::error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
}
if (gettype($header) != 'string') {
phpCAS:: error('type mismatched for parameter $header (should be `string\')');
self::error('type mismatched for parameter $header (should be `string\')');
}
$PHPCAS_CLIENT->setHTMLHeader($header);
}
@ -720,10 +720,10 @@ class phpCAS
{
global $PHPCAS_CLIENT;
if (!is_object($PHPCAS_CLIENT)) {
phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
self::error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
}
if (gettype($footer) != 'string') {
phpCAS:: error('type mismatched for parameter $footer (should be `string\')');
self::error('type mismatched for parameter $footer (should be `string\')');
}
$PHPCAS_CLIENT->setHTMLFooter($footer);
}
@ -748,24 +748,24 @@ class phpCAS
{
global $PHPCAS_CLIENT, $PHPCAS_AUTH_CHECK_CALL;
phpCAS:: traceBegin();
self::traceBegin();
if (!is_object($PHPCAS_CLIENT)) {
phpCAS:: error('this method should only be called after ' . __CLASS__ . '::proxy()');
self::error('this method should only be called after ' . __CLASS__ . '::proxy()');
}
if (!$PHPCAS_CLIENT->isProxy()) {
phpCAS:: error('this method should only be called after ' . __CLASS__ . '::proxy()');
self::error('this method should only be called after ' . __CLASS__ . '::proxy()');
}
if ($PHPCAS_AUTH_CHECK_CALL['done']) {
phpCAS:: error('this method should only be called before ' . $PHPCAS_AUTH_CHECK_CALL['method'] . '() (called at ' . $PHPCAS_AUTH_CHECK_CALL['file'] . ':' . $PHPCAS_AUTH_CHECK_CALL['line'] . ')');
self::error('this method should only be called before ' . $PHPCAS_AUTH_CHECK_CALL['method'] . '() (called at ' . $PHPCAS_AUTH_CHECK_CALL['file'] . ':' . $PHPCAS_AUTH_CHECK_CALL['line'] . ')');
}
if (gettype($format) != 'string') {
phpCAS:: error('type mismatched for parameter $format (should be `string\')');
self::error('type mismatched for parameter $format (should be `string\')');
}
if (gettype($path) != 'string') {
phpCAS:: error('type mismatched for parameter $format (should be `string\')');
self::error('type mismatched for parameter $format (should be `string\')');
phpCAS:: error('this method should only be called after ' . __CLASS__ . '::proxy()');
self::error('this method should only be called after ' . __CLASS__ . '::proxy()');
}
if (!$PHPCAS_CLIENT->isProxy()) {
phpCAS:: error('this method should only be called after ' . __CLASS__ . '::proxy()');
self::error('this method should only be called after ' . __CLASS__ . '::proxy()');
}
if ($PHPCAS_AUTH_CHECK_CALL['done']) {
phpCAS:: error('this method should only be called before ' . $PHPCAS_AUTH_CHECK_CALL['method'] . '() (called at ' . $PHPCAS_AUTH_CHECK_CALL['file'] . ':' . $PHPCAS_AUTH_CHECK_CALL['line'] . ')');
self::error('this method should only be called before ' . $PHPCAS_AUTH_CHECK_CALL['method'] . '() (called at ' . $PHPCAS_AUTH_CHECK_CALL['file'] . ':' . $PHPCAS_AUTH_CHECK_CALL['line'] . ')');
}
if (gettype($user) != 'string') {
phpCAS:: error('type mismatched for parameter $user (should be `string\')');
self::error('type mismatched for parameter $user (should be `string\')');
}
if (gettype($password) != 'string') {
phpCAS:: error('type mismatched for parameter $password (should be `string\')');
self::error('type mismatched for parameter $password (should be `string\')');
}
if (gettype($database_type) != 'string') {
phpCAS:: error('type mismatched for parameter $database_type (should be `string\')');
self::error('type mismatched for parameter $database_type (should be `string\')');
}
if (gettype($hostname) != 'string') {
phpCAS:: error('type mismatched for parameter $hostname (should be `string\')');
self::error('type mismatched for parameter $hostname (should be `string\')');
}
if (gettype($port) != 'integer') {
phpCAS:: error('type mismatched for parameter $port (should be `integer\')');
self::error('type mismatched for parameter $port (should be `integer\')');
}
if (gettype($database) != 'string') {
phpCAS:: error('type mismatched for parameter $database (should be `string\')');
self::error('type mismatched for parameter $database (should be `string\')');
}
if (gettype($table) != 'string') {
phpCAS:: error('type mismatched for parameter $table (should be `string\')');
self::error('type mismatched for parameter $table (should be `string\')');
phpCAS:: error('this method should only be called after ' . __CLASS__ . '::proxy()');
self::error('this method should only be called after ' . __CLASS__ . '::proxy()');
}
if (!$PHPCAS_CLIENT->isProxy()) {
phpCAS:: error('this method should only be called after ' . __CLASS__ . '::proxy()');
self::error('this method should only be called after ' . __CLASS__ . '::proxy()');
}
if (!$PHPCAS_AUTH_CHECK_CALL['done']) {
phpCAS:: error('this method should only be called after the programmer is sure the user has been authenticated (by calling ' . __CLASS__ . '::checkAuthentication() or ' . __CLASS__ . '::forceAuthentication()');
self::error('this method should only be called after the programmer is sure the user has been authenticated (by calling ' . __CLASS__ . '::checkAuthentication() or ' . __CLASS__ . '::forceAuthentication()');
}
if (!$PHPCAS_AUTH_CHECK_CALL['result']) {
phpCAS:: error('authentication was checked (by ' . $PHPCAS_AUTH_CHECK_CALL['method'] . '() at ' . $PHPCAS_AUTH_CHECK_CALL['file'] . ':' . $PHPCAS_AUTH_CHECK_CALL['line'] . ') but the method returned FALSE');
self::error('authentication was checked (by ' . $PHPCAS_AUTH_CHECK_CALL['method'] . '() at ' . $PHPCAS_AUTH_CHECK_CALL['file'] . ':' . $PHPCAS_AUTH_CHECK_CALL['line'] . ') but the method returned FALSE');
}
if (gettype($url) != 'string') {
phpCAS:: error('type mismatched for parameter $url (should be `string\')');
self::error('type mismatched for parameter $url (should be `string\')');
phpCAS:: error('this method should only be called after ' . __CLASS__ . '::proxy()');
self::error('this method should only be called after ' . __CLASS__ . '::proxy()');
}
if (!$PHPCAS_CLIENT->isProxy()) {
phpCAS:: error('this method should only be called after ' . __CLASS__ . '::proxy()');
self::error('this method should only be called after ' . __CLASS__ . '::proxy()');
}
if (!$PHPCAS_AUTH_CHECK_CALL['done']) {
phpCAS:: error('this method should only be called after the programmer is sure the user has been authenticated (by calling ' . __CLASS__ . '::checkAuthentication() or ' . __CLASS__ . '::forceAuthentication()');
self::error('this method should only be called after the programmer is sure the user has been authenticated (by calling ' . __CLASS__ . '::checkAuthentication() or ' . __CLASS__ . '::forceAuthentication()');
}
if (!$PHPCAS_AUTH_CHECK_CALL['result']) {
phpCAS:: error('authentication was checked (by ' . $PHPCAS_AUTH_CHECK_CALL['method'] . '() at ' . $PHPCAS_AUTH_CHECK_CALL['file'] . ':' . $PHPCAS_AUTH_CHECK_CALL['line'] . ') but the method returned FALSE');
self::error('authentication was checked (by ' . $PHPCAS_AUTH_CHECK_CALL['method'] . '() at ' . $PHPCAS_AUTH_CHECK_CALL['file'] . ':' . $PHPCAS_AUTH_CHECK_CALL['line'] . ') but the method returned FALSE');
}
if (gettype($url) != 'string') {
phpCAS:: error('type mismatched for parameter $url (should be `string\')');
self::error('type mismatched for parameter $url (should be `string\')');
}
if (gettype($flags) != 'integer') {
phpCAS:: error('type mismatched for parameter $flags (should be `integer\')');
self::error('type mismatched for parameter $flags (should be `integer\')');
phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
self::error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
}
if (!$PHPCAS_AUTH_CHECK_CALL['done']) {
phpCAS:: error('this method should only be called after ' . __CLASS__ . '::forceAuthentication() or ' . __CLASS__ . '::isAuthenticated()');
self::error('this method should only be called after ' . __CLASS__ . '::forceAuthentication() or ' . __CLASS__ . '::isAuthenticated()');
}
if (!$PHPCAS_AUTH_CHECK_CALL['result']) {
phpCAS:: error('authentication was checked (by ' . $PHPCAS_AUTH_CHECK_CALL['method'] . '() at ' . $PHPCAS_AUTH_CHECK_CALL['file'] . ':' . $PHPCAS_AUTH_CHECK_CALL['line'] . ') but the method returned FALSE');
self::error('authentication was checked (by ' . $PHPCAS_AUTH_CHECK_CALL['method'] . '() at ' . $PHPCAS_AUTH_CHECK_CALL['file'] . ':' . $PHPCAS_AUTH_CHECK_CALL['line'] . ') but the method returned FALSE');
}
return $PHPCAS_CLIENT->getUser();
}
@ -1133,13 +1133,13 @@ class phpCAS
{
global $PHPCAS_CLIENT, $PHPCAS_AUTH_CHECK_CALL;
if (!is_object($PHPCAS_CLIENT)) {
phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
self::error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
}
if (!$PHPCAS_AUTH_CHECK_CALL['done']) {
phpCAS:: error('this method should only be called after ' . __CLASS__ . '::forceAuthentication() or ' . __CLASS__ . '::isAuthenticated()');
self::error('this method should only be called after ' . __CLASS__ . '::forceAuthentication() or ' . __CLASS__ . '::isAuthenticated()');
}
if (!$PHPCAS_AUTH_CHECK_CALL['result']) {
phpCAS:: error('authentication was checked (by ' . $PHPCAS_AUTH_CHECK_CALL['method'] . '() at ' . $PHPCAS_AUTH_CHECK_CALL['file'] . ':' . $PHPCAS_AUTH_CHECK_CALL['line'] . ') but the method returned FALSE');
self::error('authentication was checked (by ' . $PHPCAS_AUTH_CHECK_CALL['method'] . '() at ' . $PHPCAS_AUTH_CHECK_CALL['file'] . ':' . $PHPCAS_AUTH_CHECK_CALL['line'] . ') but the method returned FALSE');
}
return $PHPCAS_CLIENT->getAttributes();
}
@ -1151,7 +1151,7 @@ class phpCAS
{
global $PHPCAS_CLIENT;
if (!is_object($PHPCAS_CLIENT)) {
phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
self::error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');