public static function get_course_pattern($course) {
        $color = self::coursecolor($course->id);
        $pattern = new \core_geopattern();
        $pattern->setColor($color);
        $pattern->patternbyid($course->id);
        return $pattern->datauri();
    }
public static function get_course_pattern($course) {
        $color = self::coursecolor($course->id);
        $pattern = new \core_geopattern();
        $pattern->setColor($color);
        $pattern->patternbyid($course->id);
        return $pattern->datauri();
    }
public static function get_course_pattern ( $ course ) { $ color = self :: coursecolor ( $ course -> id ) ; $ pattern = new \ core_geopattern ( ) ; $ pattern -> setColor ( $ color ) ; $ pattern -> patternbyid ( $ course -> id ) ; return $ pattern -> datauri ( ) ; }
Get the course pattern datauri.

The datauri is an encoded svg that can be passed as a url.
@param object $course
@return string datauri
Get the course pattern datauri .