original_string: function write($pgt,$pgt_iou)
      {
          phpCAS::traceBegin();
          $fname = $this->getPGTIouFilename($pgt_iou);
          if (!file_exists($fname)) {
              touch($fname);
              // Chmod will fail on windows
              @chmod($fname, 0600);
              if ($f=fopen($fname, "w")) {
                  if (fputs($f, $pgt) === false) {
                      phpCAS::error('could not write PGT to `'.$fname.'\'');
                  }
                  phpCAS::trace('Successful write of PGT to `'.$fname.'\'');
                  fclose($f);
              } else {
                  phpCAS::error('could not open `'.$fname.'\'');
              }
          } else {
              phpCAS::error('File exists: `'.$fname.'\'');
          }
          phpCAS::traceEnd();
      }
code: function write($pgt,$pgt_iou)
      {
          phpCAS::traceBegin();
          $fname = $this->getPGTIouFilename($pgt_iou);
          if (!file_exists($fname)) {
              touch($fname);
              // Chmod will fail on windows
              @chmod($fname, 0600);
              if ($f=fopen($fname, "w")) {
                  if (fputs($f, $pgt) === false) {
                      phpCAS::error('could not write PGT to `'.$fname.'\'');
                  }
                  phpCAS::trace('Successful write of PGT to `'.$fname.'\'');
                  fclose($f);
              } else {
                  phpCAS::error('could not open `'.$fname.'\'');
              }
          } else {
              phpCAS::error('File exists: `'.$fname.'\'');
          }
          phpCAS::traceEnd();
      }
code_tokens: function write ( $ pgt , $ pgt_iou ) { phpCAS :: traceBegin ( ) ; $ fname = $ this -> getPGTIouFilename ( $ pgt_iou ) ; if ( ! file_exists ( $ fname ) ) { touch ( $ fname ) ; // Chmod will fail on windows @ chmod ( $ fname , 0600 ) ; if ( $ f = fopen ( $ fname , "w" ) ) { if ( fputs ( $ f , $ pgt ) === false ) { phpCAS :: error ( 'could not write PGT to `' . $ fname . '\'' ) ; } phpCAS :: trace ( 'Successful write of PGT to `' . $ fname . '\'' ) ; fclose ( $ f ) ; } else { phpCAS :: error ( 'could not open `' . $ fname . '\'' ) ; } } else { phpCAS :: error ( 'File exists: `' . $ fname . '\'' ) ; } phpCAS :: traceEnd ( ) ; }
docstring: This method stores a PGT and its corresponding PGT Iou into a file. Echoes a
  warning on error.
  
  @param string $pgt     the PGT
  @param string $pgt_iou the PGT iou
  
  @return void
  
  @public
docstring_tokens: This method stores a PGT and its corresponding PGT Iou into a file . Echoes a warning on error .