original_string: public static function read_competency_framework($id) {
          global $PAGE;
  
          $params = self::validate_parameters(self::read_competency_framework_parameters(), array(
              'id' => $id,
          ));
  
          $framework = api::read_framework($params['id']);
          self::validate_context($framework->get_context());
          $output = $PAGE->get_renderer('core');
          $exporter = new competency_framework_exporter($framework);
          $record = $exporter->export($output);
          return $record;
      }
code: public static function read_competency_framework($id) {
          global $PAGE;
  
          $params = self::validate_parameters(self::read_competency_framework_parameters(), array(
              'id' => $id,
          ));
  
          $framework = api::read_framework($params['id']);
          self::validate_context($framework->get_context());
          $output = $PAGE->get_renderer('core');
          $exporter = new competency_framework_exporter($framework);
          $record = $exporter->export($output);
          return $record;
      }
code_tokens: public static function read_competency_framework ( $ id ) { global $ PAGE ; $ params = self :: validate_parameters ( self :: read_competency_framework_parameters ( ) , array ( 'id' => $ id , ) ) ; $ framework = api :: read_framework ( $ params [ 'id' ] ) ; self :: validate_context ( $ framework -> get_context ( ) ) ; $ output = $ PAGE -> get_renderer ( 'core' ) ; $ exporter = new competency_framework_exporter ( $ framework ) ; $ record = $ exporter -> export ( $ output ) ; return $ record ; }
docstring: Read a competency framework by id.
  
  @param int $id The id of the framework.
  @return \stdClass
docstring_tokens: Read a competency framework by id .