original_string: public static function data_for_user_competency_summary($userid, $competencyid) {
          global $PAGE;
          $params = self::validate_parameters(self::data_for_user_competency_summary_parameters(), array(
              'userid' => $userid,
              'competencyid' => $competencyid,
          ));
  
          $uc = api::get_user_competency($params['userid'], $params['competencyid']);
          self::validate_context($uc->get_context());
          $output = $PAGE->get_renderer('tool_lp');
  
          $renderable = new \tool_lp\output\user_competency_summary($uc);
          return $renderable->export_for_template($output);
      }
code: public static function data_for_user_competency_summary($userid, $competencyid) {
          global $PAGE;
          $params = self::validate_parameters(self::data_for_user_competency_summary_parameters(), array(
              'userid' => $userid,
              'competencyid' => $competencyid,
          ));
  
          $uc = api::get_user_competency($params['userid'], $params['competencyid']);
          self::validate_context($uc->get_context());
          $output = $PAGE->get_renderer('tool_lp');
  
          $renderable = new \tool_lp\output\user_competency_summary($uc);
          return $renderable->export_for_template($output);
      }
code_tokens: public static function data_for_user_competency_summary ( $ userid , $ competencyid ) { global $ PAGE ; $ params = self :: validate_parameters ( self :: data_for_user_competency_summary_parameters ( ) , array ( 'userid' => $ userid , 'competencyid' => $ competencyid , ) ) ; $ uc = api :: get_user_competency ( $ params [ 'userid' ] , $ params [ 'competencyid' ] ) ; self :: validate_context ( $ uc -> get_context ( ) ) ; $ output = $ PAGE -> get_renderer ( 'tool_lp' ) ; $ renderable = new \ tool_lp \ output \ user_competency_summary ( $ uc ) ; return $ renderable -> export_for_template ( $ output ) ; }
docstring: Data for user competency summary.
  
  @param int $userid The user ID
  @param int $competencyid The competency ID
  @return \stdClass
docstring_tokens: Data for user competency summary .