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);
        }
    }
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);
        }
    }
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 ) ; } }
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
Cleanup temporary data