public function display_page(lesson $lesson, lesson_page $page, $attempt) {
        // We need to buffer here as there is an mforms display call
        ob_start();
        echo $page->display($this, $attempt);
        $output = ob_get_contents();
        ob_end_clean();
        return $output;
    }
public function display_page(lesson $lesson, lesson_page $page, $attempt) {
        // We need to buffer here as there is an mforms display call
        ob_start();
        echo $page->display($this, $attempt);
        $output = ob_get_contents();
        ob_end_clean();
        return $output;
    }
public function display_page ( lesson $ lesson , lesson_page $ page , $ attempt ) { // We need to buffer here as there is an mforms display call ob_start ( ) ; echo $ page -> display ( $ this , $ attempt ) ; $ output = ob_get_contents ( ) ; ob_end_clean ( ) ; return $ output ; }
Returns HTML to display a page to the user
@param lesson $lesson
@param lesson_page $page
@param object $attempt
@return string
Returns HTML to display a page to the user