protected static function moodleform(moodleform $mform) {

        ob_start();
        $mform->display();
        $o = ob_get_contents();
        ob_end_clean();

        return $o;
    }
protected static function moodleform(moodleform $mform) {

        ob_start();
        $mform->display();
        $o = ob_get_contents();
        ob_end_clean();

        return $o;
    }
protected static function moodleform ( moodleform $ mform ) { ob_start ( ) ; $ mform -> display ( ) ; $ o = ob_get_contents ( ) ; ob_end_clean ( ) ; return $ o ; }
Helper method dealing with the fact we can not just fetch the output of moodleforms

@param moodleform $mform
@return string HTML
Helper method dealing with the fact we can not just fetch the output of moodleforms