original_string: public function cleanup($full=false) {
          global $USER, $CFG;
  
          if ($full) {
              @remove_dir($CFG->tempdir.'/csvimport/'.$this->_type.'/'.$USER->id);
          } else {
              @unlink($CFG->tempdir.'/csvimport/'.$this->_type.'/'.$USER->id.'/'.$this->_iid);
          }
      }
code: public function cleanup($full=false) {
          global $USER, $CFG;
  
          if ($full) {
              @remove_dir($CFG->tempdir.'/csvimport/'.$this->_type.'/'.$USER->id);
          } else {
              @unlink($CFG->tempdir.'/csvimport/'.$this->_type.'/'.$USER->id.'/'.$this->_iid);
          }
      }
code_tokens: public function cleanup ( $ full = false ) { global $ USER , $ CFG ; if ( $ full ) { @ remove_dir ( $ CFG -> tempdir . '/csvimport/' . $ this -> _type . '/' . $ USER -> id ) ; } else { @ unlink ( $ CFG -> tempdir . '/csvimport/' . $ this -> _type . '/' . $ USER -> id . '/' . $ this -> _iid ) ; } }
docstring: Cleanup temporary data
  
  @global object
  @global object
  @param boolean $full true means do a full cleanup - all sessions for current user, false only the active iid
docstring_tokens: Cleanup temporary data