protected function number($number) {
        if (trim($number) === '') {
            return '';
        }
        $numbertext = '';
        if (trim($number) === 'i') {
            $numbertext = get_string('information', 'question');
        } else {
            $numbertext = get_string('questionx', 'question',
                    html_writer::tag('span', $number, array('class' => 'qno')));
        }
        return html_writer::tag('h3', $numbertext, array('class' => 'no'));
    }
protected function number($number) {
        if (trim($number) === '') {
            return '';
        }
        $numbertext = '';
        if (trim($number) === 'i') {
            $numbertext = get_string('information', 'question');
        } else {
            $numbertext = get_string('questionx', 'question',
                    html_writer::tag('span', $number, array('class' => 'qno')));
        }
        return html_writer::tag('h3', $numbertext, array('class' => 'no'));
    }
protected function number ( $ number ) { if ( trim ( $ number ) === '' ) { return '' ; } $ numbertext = '' ; if ( trim ( $ number ) === 'i' ) { $ numbertext = get_string ( 'information' , 'question' ) ; } else { $ numbertext = get_string ( 'questionx' , 'question' , html_writer :: tag ( 'span' , $ number , array ( 'class' => 'qno' ) ) ) ; } return html_writer :: tag ( 'h3' , $ numbertext , array ( 'class' => 'no' ) ) ; }
Generate the display of the question number.
@param string|null $number The question number to display. 'i' is a special
value that gets displayed as Information. Null means no number is displayed.
@return HTML fragment.
Generate the display of the question number .