public static function data_for_course_competencies_page($courseid) {
        global $PAGE;
        $params = self::validate_parameters(self::data_for_course_competencies_page_parameters(), array(
            'courseid' => $courseid,
        ));
        self::validate_context(context_course::instance($params['courseid']));

        $renderable = new output\course_competencies_page($params['courseid']);
        $renderer = $PAGE->get_renderer('tool_lp');

        $data = $renderable->export_for_template($renderer);

        return $data;
    }
public static function data_for_course_competencies_page($courseid) {
        global $PAGE;
        $params = self::validate_parameters(self::data_for_course_competencies_page_parameters(), array(
            'courseid' => $courseid,
        ));
        self::validate_context(context_course::instance($params['courseid']));

        $renderable = new output\course_competencies_page($params['courseid']);
        $renderer = $PAGE->get_renderer('tool_lp');

        $data = $renderable->export_for_template($renderer);

        return $data;
    }
public static function data_for_course_competencies_page ( $ courseid ) { global $ PAGE ; $ params = self :: validate_parameters ( self :: data_for_course_competencies_page_parameters ( ) , array ( 'courseid' => $ courseid , ) ) ; self :: validate_context ( context_course :: instance ( $ params [ 'courseid' ] ) ) ; $ renderable = new output \ course_competencies_page ( $ params [ 'courseid' ] ) ; $ renderer = $ PAGE -> get_renderer ( 'tool_lp' ) ; $ data = $ renderable -> export_for_template ( $ renderer ) ; return $ data ; }
Loads the data required to render the course_competencies_page template.

@param int $courseid The course id to check.
@return boolean
Loads the data required to render the course_competencies_page template .