phpCAS::setPGTStorage PHP Method

setPGTStorage() public static method

This method can be used to set a custom PGT storage object.
public static setPGTStorage ( CAS_PGTStorage $storage ) : void
$storage CAS_PGTStorage a PGT storage object that inherits from the CAS_PGTStorage class
return void
    public static function setPGTStorage($storage)
    {
        phpCAS::traceBegin();
        phpCAS::_validateProxyExists();
        try {
            self::$_PHPCAS_CLIENT->setPGTStorage($storage);
        } catch (Exception $e) {
            phpCAS::error(get_class($e) . ': ' . $e->getMessage());
        }
        phpCAS::traceEnd();
    }