phpCAS
version 1.4.0
CAS
PGTStorage
AbstractStorage.php
Go to the documentation of this file.
1
<?php
2
46
abstract
class
CAS_PGTStorage_AbstractStorage
47
{
53
// ########################################################################
54
// CONSTRUCTOR
55
// ########################################################################
56
67
function
__construct
($cas_parent)
68
{
69
phpCAS::traceBegin
();
70
if
( !$cas_parent->isProxy() ) {
71
phpCAS::error
(
72
'defining PGT storage makes no sense when not using a CAS proxy'
73
);
74
}
75
phpCAS::traceEnd
();
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
?>
CAS_PGTStorage_AbstractStorage\$_error_message
$_error_message
Definition:
AbstractStorage.php:119
phpCAS\error
static error($msg)
Definition:
CAS.php:580
CAS_PGTStorage_AbstractStorage\setErrorMessage
setErrorMessage($error_message)
Definition:
AbstractStorage.php:131
CAS_PGTStorage_AbstractStorage\isInitialized
isInitialized()
Definition:
AbstractStorage.php:168
phpCAS\traceEnd
static traceEnd($res='')
Definition:
CAS.php:675
CAS_PGTStorage_AbstractStorage\write
write($pgt, $pgt_iou)
Definition:
AbstractStorage.php:198
CAS_PGTStorage_AbstractStorage\init
init()
Definition:
AbstractStorage.php:178
CAS_PGTStorage_AbstractStorage\getStorageInfo
getStorageInfo()
Definition:
AbstractStorage.php:103
CAS_PGTStorage_AbstractStorage\getErrorMessage
getErrorMessage()
Definition:
AbstractStorage.php:144
CAS_PGTStorage_AbstractStorage
Definition:
AbstractStorage.php:46
CAS_PGTStorage_AbstractStorage\read
read($pgt_iou)
Definition:
AbstractStorage.php:213
CAS_PGTStorage_AbstractStorage\__construct
__construct($cas_parent)
Definition:
AbstractStorage.php:67
phpCAS\traceBegin
static traceBegin()
Definition:
CAS.php:628
CAS_PGTStorage_AbstractStorage\getStorageType
getStorageType()
Definition:
AbstractStorage.php:90
CAS_PGTStorage_AbstractStorage\$_initialized
$_initialized
Definition:
AbstractStorage.php:159
Generated by
1.8.13