public function get_icon($alt, array $attributes = null) {
        global $COMPLETION_CRITERIA_TYPES;

        $criteriatype = $COMPLETION_CRITERIA_TYPES[$this->criteriatype];
        return new pix_icon('i/'.$criteriatype, $alt, 'moodle', $attributes);
    }