Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Licensed to Jasig under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Jasig licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:

Author: Pascal Aubry <pascal.aubry@univ-rennes1.fr>
License: http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
File Size: 222 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

CAS_PGTStorage_AbstractStorage:: (9 methods):
  __construct()
  getStorageType()
  getStorageInfo()
  setErrorMessage()
  getErrorMessage()
  isInitialized()
  init()
  write()
  read()


Class: CAS_PGTStorage_AbstractStorage  - X-Ref

Basic class for PGT storage
The CAS_PGTStorage_AbstractStorage class is a generic class for PGT storage.
This class should not be instanciated itself but inherited by specific PGT
storage classes.

__construct($cas_parent)   X-Ref
The constructor of the class, should be called only by inherited classes.

return: void
param: CAS_Client $cas_parent the CAS _client instance that creates the

getStorageType()   X-Ref
This virtual method returns an informational string giving the type of storage
used by the object (used for debugging purposes).

return: string

getStorageInfo()   X-Ref
This virtual method returns an informational string giving informations on the
parameters of the storage.(used for debugging purposes).

return: string

setErrorMessage($error_message)   X-Ref
This method sets en error message, which can be read later by
PGTStorage::getErrorMessage().

return: void
param: string $error_message an error message

getErrorMessage()   X-Ref
This method returns an error message set by PGTStorage::setErrorMessage().

return: string an error message when set by PGTStorage::setErrorMessage(), FALSE

isInitialized()   X-Ref
This method tells if the storage has already been intialized.

return: bool

init()   X-Ref
This virtual method initializes the object.

return: void

write($pgt,$pgt_iou)   X-Ref
This virtual method stores a PGT and its corresponding PGT Iuo.

return: void
param: string $pgt     the PGT
param: string $pgt_iou the PGT iou

read($pgt_iou)   X-Ref
This virtual method reads a PGT corresponding to a PGT Iou and deletes
the corresponding storage entry.

return: string
param: string $pgt_iou the PGT iou