public function write_hints($question) {
        if (empty($question->hints)) {
            return '';
        }

        $output = '';
        foreach ($question->hints as $hint) {
            $output .= $this->write_hint($hint, $question->contextid);
        }
        return $output;
    }
public function write_hints($question) {
        if (empty($question->hints)) {
            return '';
        }

        $output = '';
        foreach ($question->hints as $hint) {
            $output .= $this->write_hint($hint, $question->contextid);
        }
        return $output;
    }
public function write_hints ( $ question ) { if ( empty ( $ question -> hints ) ) { return '' ; } $ output = '' ; foreach ( $ question -> hints as $ hint ) { $ output .= $ this -> write_hint ( $ hint , $ question -> contextid ) ; } return $ output ; }
Write out the hints.
@param object $question the question definition data.
@return string XML to output.
Write out the hints .