public function col_course($event) {
        if (empty($event->courseid) || empty($this->courseshortnames[$event->courseid])) {
            return '-';
        } else {
            return $this->courseshortnames[$event->courseid];
        }
    }
public function col_course($event) {
        if (empty($event->courseid) || empty($this->courseshortnames[$event->courseid])) {
            return '-';
        } else {
            return $this->courseshortnames[$event->courseid];
        }
    }
public function col_course ( $ event ) { if ( empty ( $ event -> courseid ) || empty ( $ this -> courseshortnames [ $ event -> courseid ] ) ) { return '-' ; } else { return $ this -> courseshortnames [ $ event -> courseid ] ; } }
Generate the course column.

@param stdClass $event event data.
@return string HTML for the course column.
Generate the course column .