original_string: public function col_course($event) {
          if (empty($event->courseid) || empty($this->courseshortnames[$event->courseid])) {
              return '-';
          } else {
              return $this->courseshortnames[$event->courseid];
          }
      }
code: public function col_course($event) {
          if (empty($event->courseid) || empty($this->courseshortnames[$event->courseid])) {
              return '-';
          } else {
              return $this->courseshortnames[$event->courseid];
          }
      }
code_tokens: public function col_course ( $ event ) { if ( empty ( $ event -> courseid ) || empty ( $ this -> courseshortnames [ $ event -> courseid ] ) ) { return '-' ; } else { return $ this -> courseshortnames [ $ event -> courseid ] ; } }
docstring: Generate the course column.
  
  @param stdClass $event event data.
  @return string HTML for the course column.
docstring_tokens: Generate the course column .