original_string: private static function grading_area() {
          return new external_single_structure(
              array (
                  'cmid'    => new external_value(PARAM_INT, 'course module id'),
                  'contextid'  => new external_value(PARAM_INT, 'context id'),
                  'component' => new external_value(PARAM_TEXT, 'component name'),
                  'areaname' => new external_value(PARAM_TEXT, 'area name'),
                  'activemethod' => new external_value(PARAM_TEXT, 'active method', VALUE_OPTIONAL),
                  'definitions'  => new external_multiple_structure(self::definition(), 'definitions')
              )
          );
      }
code: private static function grading_area() {
          return new external_single_structure(
              array (
                  'cmid'    => new external_value(PARAM_INT, 'course module id'),
                  'contextid'  => new external_value(PARAM_INT, 'context id'),
                  'component' => new external_value(PARAM_TEXT, 'component name'),
                  'areaname' => new external_value(PARAM_TEXT, 'area name'),
                  'activemethod' => new external_value(PARAM_TEXT, 'active method', VALUE_OPTIONAL),
                  'definitions'  => new external_multiple_structure(self::definition(), 'definitions')
              )
          );
      }
code_tokens: private static function grading_area ( ) { return new external_single_structure ( array ( 'cmid' => new external_value ( PARAM_INT , 'course module id' ) , 'contextid' => new external_value ( PARAM_INT , 'context id' ) , 'component' => new external_value ( PARAM_TEXT , 'component name' ) , 'areaname' => new external_value ( PARAM_TEXT , 'area name' ) , 'activemethod' => new external_value ( PARAM_TEXT , 'active method' , VALUE_OPTIONAL ) , 'definitions' => new external_multiple_structure ( self :: definition ( ) , 'definitions' ) ) ) ; }
docstring: Creates a grading area
  @return external_single_structure
  @since  Moodle 2.5
docstring_tokens: Creates a grading area