phpCAS::isInitialized PHP Method

isInitialized() public static method

Answer whether or not the client or proxy has been initialized
public static isInitialized ( ) : boolean
return boolean
    public static function isInitialized()
    {
        return is_object(self::$_PHPCAS_CLIENT);
    }

Usage Example

 protected function initializeCASClient()
 {
     if (!phpCAS::isInitialized()) {
         // Set debug mode
         phpCAS::setDebug(false);
         //Initialize phpCAS
         phpCAS::client(CAS_VERSION_2_0, Configure::read('user_config.cas.hostname'), Configure::read('user_config.cas.port'), Configure::read('user_config.cas.uri'), true);
         phpCAS::setFixedServiceURL($this->loginRedirectURL());
         // No SSL validation for the CAS server
         phpCAS::setNoCasServerValidation();
     }
     return true;
 }
All Usage Examples Of phpCAS::isInitialized