phpCAS  version 1.4.0
AbstractStorage.php
Go to the documentation of this file.
1 <?php
2 
47 {
53  // ########################################################################
54  // CONSTRUCTOR
55  // ########################################################################
56 
67  function __construct($cas_parent)
68  {
70  if ( !$cas_parent->isProxy() ) {
72  'defining PGT storage makes no sense when not using a CAS proxy'
73  );
74  }
76  }
77 
78  // ########################################################################
79  // DEBUGGING
80  // ########################################################################
81 
90  function getStorageType()
91  {
92  phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called');
93  }
94 
103  function getStorageInfo()
104  {
105  phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called');
106  }
107 
108  // ########################################################################
109  // ERROR HANDLING
110  // ########################################################################
111 
119  var $_error_message=false;
120 
131  function setErrorMessage($error_message)
132  {
133  $this->_error_message = $error_message;
134  }
135 
144  function getErrorMessage()
145  {
146  return $this->_error_message;
147  }
148 
149  // ########################################################################
150  // INITIALIZATION
151  // ########################################################################
152 
159  var $_initialized = false;
160 
168  function isInitialized()
169  {
170  return $this->_initialized;
171  }
172 
178  function init()
179  {
180  $this->_initialized = true;
181  }
182 
183  // ########################################################################
184  // PGT I/O
185  // ########################################################################
186 
198  function write($pgt,$pgt_iou)
199  {
200  phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called');
201  }
202 
213  function read($pgt_iou)
214  {
215  phpCAS::error(__CLASS__.'::'.__FUNCTION__.'() should never be called');
216  }
217 
220 }
221 
222 ?>
static error($msg)
Definition: CAS.php:580
static traceEnd($res='')
Definition: CAS.php:675
static traceBegin()
Definition: CAS.php:628