original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Loads the data required to render the plan_page template.
  
  @param int $planid Learning Plan id.
  @return boolean
docstring_tokens: Loads the data required to render the plan_page template .