• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

Services/CAS/phpcas/source/CAS/PGTStorage/pgt-main.php

Go to the documentation of this file.
00001 <?php
00002 
00018 class PGTStorage
00019 {
00025   // ########################################################################
00026   //  CONSTRUCTOR
00027   // ########################################################################
00028   
00036   function PGTStorage($cas_parent)
00037     {
00038       phpCAS::traceBegin();
00039       if ( !$cas_parent->isProxy() ) {
00040         phpCAS::error('defining PGT storage makes no sense when not using a CAS proxy'); 
00041       }
00042       phpCAS::traceEnd();
00043     }
00044 
00045   // ########################################################################
00046   //  DEBUGGING
00047   // ########################################################################
00048   
00055   function getStorageType()
00056     {
00057       phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called'); 
00058     }
00059 
00066   function getStorageInfo()
00067     {
00068       phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called'); 
00069     }
00070 
00071   // ########################################################################
00072   //  ERROR HANDLING
00073   // ########################################################################
00074   
00083   var $_error_message=FALSE;
00084 
00094   function setErrorMessage($error_message)
00095     {
00096       $this->_error_message = $error_message;
00097     }
00098 
00108   function getErrorMessage()
00109     {
00110       return $this->_error_message;
00111     }
00112 
00113   // ########################################################################
00114   //  INITIALIZATION
00115   // ########################################################################
00116 
00124   var $_initialized = FALSE;
00125 
00133   function isInitialized()
00134     {
00135       return $this->_initialized;
00136     }
00137 
00143   function init()
00144     {
00145       $this->_initialized = TRUE;
00146     }
00147 
00148   // ########################################################################
00149   //  PGT I/O
00150   // ########################################################################
00151 
00161   function write($pgt,$pgt_iou)
00162     {
00163       phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called'); 
00164     }
00165 
00175   function read($pgt_iou)
00176     {
00177       phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called'); 
00178     }
00179 
00182 } 
00183 
00184 // include specific PGT storage classes
00185 include_once(dirname(__FILE__).'/pgt-file.php'); 
00186 include_once(dirname(__FILE__).'/pgt-db.php');
00187   
00188 ?>

Generated on Fri Dec 13 2013 13:52:11 for ILIAS Release_3_7_x_branch .rev 46817 by  doxygen 1.7.1