original_string: public function get_enrolment_instances($onlyenabled = false) {
          if ($this->_instances === null) {
              $this->_instances = enrol_get_instances($this->course->id, $onlyenabled);
          }
          return $this->_instances;
      }
code: public function get_enrolment_instances($onlyenabled = false) {
          if ($this->_instances === null) {
              $this->_instances = enrol_get_instances($this->course->id, $onlyenabled);
          }
          return $this->_instances;
      }
code_tokens: public function get_enrolment_instances ( $ onlyenabled = false ) { if ( $ this -> _instances === null ) { $ this -> _instances = enrol_get_instances ( $ this -> course -> id , $ onlyenabled ) ; } return $ this -> _instances ; }
docstring: Returns all of the enrolment instances for this course.
  
  @param bool $onlyenabled Whether to return data from enabled enrolment instance names only.
  @return array
docstring_tokens: Returns all of the enrolment instances for this course .