original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Should all enrolled users be exported or just those with an active enrolment?