public function require_active_enrolment($onlyactive = true) {
        if (!empty($this->users_rs)) {
            debugging('Calling require_active_enrolment() has no effect unless you call init() again', DEBUG_DEVELOPER);
        }
        $this->onlyactive  = $onlyactive;
    }
public function require_active_enrolment($onlyactive = true) {
        if (!empty($this->users_rs)) {
            debugging('Calling require_active_enrolment() has no effect unless you call init() again', DEBUG_DEVELOPER);
        }
        $this->onlyactive  = $onlyactive;
    }
public function require_active_enrolment ( $ onlyactive = true ) { if ( ! empty ( $ this -> users_rs ) ) { debugging ( 'Calling require_active_enrolment() has no effect unless you call init() again' , DEBUG_DEVELOPER ) ; } $ this -> onlyactive = $ onlyactive ; }
Should all enrolled users be exported or just those with an active enrolment?

@param bool $onlyactive True to limit the export to users with an active enrolment
Should all enrolled users be exported or just those with an active enrolment?