91 return 'path=`'.$this->getPath().
'\', format=`
'.$this->getFormat().'\
'';
109 phpCAS::traceBegin();
117 if ( $path[0] !=
'/' ) {
118 phpCAS::error(
'an absolute path is needed for PGT storage to file');
122 $path = preg_replace(
'|[/]*$|',
'/',$path);
123 $path = preg_replace(
'|^[/]*|',
'/',$path);
124 $this->_path = $path;
130 $this->_format = $format;
149 phpCAS::traceBegin();
172 phpCAS::traceBegin();
188 phpCAS::traceBegin();
190 if ( $f=fopen($fname,
"w") ) {
191 if ( fputs($f,$pgt) === FALSE ) {
192 phpCAS::error(
'could not write PGT to `'.$fname.
'\'');
196 phpCAS::error(
'could not open `'.$fname.
'\'');
213 phpCAS::traceBegin();
216 if ( !($f=fopen($fname,
"r")) ) {
217 phpCAS::trace(
'could not open `'.$fname.
'\'');
219 if ( ($pgt=fgets($f)) === FALSE ) {
220 phpCAS::trace(
'could not read PGT from `'.$fname.
'\'');
228 phpCAS::traceEnd($pgt);