protected function helper_participant(stdclass $allocation, array $userinfo) {
        $o  = $this->output->user_picture($userinfo[$allocation->userid], array('courseid' => $this->page->course->id));
        $o .= fullname($userinfo[$allocation->userid]);
        $o .= $this->output->container_start(array('submission'));
        if (is_null($allocation->submissionid)) {
            $o .= $this->output->container(get_string('nosubmissionfound', 'workshop'), 'info');
        } else {
            $link = $this->workshop->submission_url($allocation->submissionid);
            $o .= $this->output->container(html_writer::link($link, format_string($allocation->submissiontitle)), 'title');
            if (is_null($allocation->submissiongrade)) {
                $o .= $this->output->container(get_string('nogradeyet', 'workshop'), array('grade', 'missing'));
            } else {
                $o .= $this->output->container(get_string('alreadygraded', 'workshop'), array('grade', 'missing'));
            }
        }
        $o .= $this->output->container_end();
        return $o;
    }
protected function helper_participant(stdclass $allocation, array $userinfo) {
        $o  = $this->output->user_picture($userinfo[$allocation->userid], array('courseid' => $this->page->course->id));
        $o .= fullname($userinfo[$allocation->userid]);
        $o .= $this->output->container_start(array('submission'));
        if (is_null($allocation->submissionid)) {
            $o .= $this->output->container(get_string('nosubmissionfound', 'workshop'), 'info');
        } else {
            $link = $this->workshop->submission_url($allocation->submissionid);
            $o .= $this->output->container(html_writer::link($link, format_string($allocation->submissiontitle)), 'title');
            if (is_null($allocation->submissiongrade)) {
                $o .= $this->output->container(get_string('nogradeyet', 'workshop'), array('grade', 'missing'));
            } else {
                $o .= $this->output->container(get_string('alreadygraded', 'workshop'), array('grade', 'missing'));
            }
        }
        $o .= $this->output->container_end();
        return $o;
    }
protected function helper_participant ( stdclass $ allocation , array $ userinfo ) { $ o = $ this -> output -> user_picture ( $ userinfo [ $ allocation -> userid ] , array ( 'courseid' => $ this -> page -> course -> id ) ) ; $ o .= fullname ( $ userinfo [ $ allocation -> userid ] ) ; $ o .= $ this -> output -> container_start ( array ( 'submission' ) ) ; if ( is_null ( $ allocation -> submissionid ) ) { $ o .= $ this -> output -> container ( get_string ( 'nosubmissionfound' , 'workshop' ) , 'info' ) ; } else { $ link = $ this -> workshop -> submission_url ( $ allocation -> submissionid ) ; $ o .= $ this -> output -> container ( html_writer :: link ( $ link , format_string ( $ allocation -> submissiontitle ) ) , 'title' ) ; if ( is_null ( $ allocation -> submissiongrade ) ) { $ o .= $ this -> output -> container ( get_string ( 'nogradeyet' , 'workshop' ) , array ( 'grade' , 'missing' ) ) ; } else { $ o .= $ this -> output -> container ( get_string ( 'alreadygraded' , 'workshop' ) , array ( 'grade' , 'missing' ) ) ; } } $ o .= $ this -> output -> container_end ( ) ; return $ o ; }
Returns information about the workshop participant

@return string HTML code
Returns information about the workshop participant