public static function data_for_plan_page($planid) {
        global $PAGE;
        $params = self::validate_parameters(self::data_for_plan_page_parameters(), array(
            'planid' => $planid
        ));
        $plan = api::read_plan($params['planid']);
        self::validate_context($plan->get_context());

        $renderable = new output\plan_page($plan);
        $renderer = $PAGE->get_renderer('tool_lp');

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

        return $data;
    }
public static function data_for_plan_page($planid) {
        global $PAGE;
        $params = self::validate_parameters(self::data_for_plan_page_parameters(), array(
            'planid' => $planid
        ));
        $plan = api::read_plan($params['planid']);
        self::validate_context($plan->get_context());

        $renderable = new output\plan_page($plan);
        $renderer = $PAGE->get_renderer('tool_lp');

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

        return $data;
    }
public static function data_for_plan_page ( $ planid ) { global $ PAGE ; $ params = self :: validate_parameters ( self :: data_for_plan_page_parameters ( ) , array ( 'planid' => $ planid ) ) ; $ plan = api :: read_plan ( $ params [ 'planid' ] ) ; self :: validate_context ( $ plan -> get_context ( ) ) ; $ renderable = new output \ plan_page ( $ plan ) ; $ renderer = $ PAGE -> get_renderer ( 'tool_lp' ) ; $ data = $ renderable -> export_for_template ( $ renderer ) ; return $ data ; }
Loads the data required to render the plan_page template.

@param int $planid Learning Plan id.
@return boolean
Loads the data required to render the plan_page template .