original_string: public function get_aggregate_label($aggregationmethod) {
          $aggregatelabel = '';
          switch ($aggregationmethod) {
              case RATING_AGGREGATE_AVERAGE :
                  $aggregatelabel .= get_string("aggregateavg", "rating");
                  break;
              case RATING_AGGREGATE_COUNT :
                  $aggregatelabel .= get_string("aggregatecount", "rating");
                  break;
              case RATING_AGGREGATE_MAXIMUM :
                  $aggregatelabel .= get_string("aggregatemax", "rating");
                  break;
              case RATING_AGGREGATE_MINIMUM :
                  $aggregatelabel .= get_string("aggregatemin", "rating");
                  break;
              case RATING_AGGREGATE_SUM :
                  $aggregatelabel .= get_string("aggregatesum", "rating");
                  break;
          }
          $aggregatelabel .= get_string('labelsep', 'langconfig');
          return $aggregatelabel;
      }
code: public function get_aggregate_label($aggregationmethod) {
          $aggregatelabel = '';
          switch ($aggregationmethod) {
              case RATING_AGGREGATE_AVERAGE :
                  $aggregatelabel .= get_string("aggregateavg", "rating");
                  break;
              case RATING_AGGREGATE_COUNT :
                  $aggregatelabel .= get_string("aggregatecount", "rating");
                  break;
              case RATING_AGGREGATE_MAXIMUM :
                  $aggregatelabel .= get_string("aggregatemax", "rating");
                  break;
              case RATING_AGGREGATE_MINIMUM :
                  $aggregatelabel .= get_string("aggregatemin", "rating");
                  break;
              case RATING_AGGREGATE_SUM :
                  $aggregatelabel .= get_string("aggregatesum", "rating");
                  break;
          }
          $aggregatelabel .= get_string('labelsep', 'langconfig');
          return $aggregatelabel;
      }
code_tokens: public function get_aggregate_label ( $ aggregationmethod ) { $ aggregatelabel = '' ; switch ( $ aggregationmethod ) { case RATING_AGGREGATE_AVERAGE : $ aggregatelabel .= get_string ( "aggregateavg" , "rating" ) ; break ; case RATING_AGGREGATE_COUNT : $ aggregatelabel .= get_string ( "aggregatecount" , "rating" ) ; break ; case RATING_AGGREGATE_MAXIMUM : $ aggregatelabel .= get_string ( "aggregatemax" , "rating" ) ; break ; case RATING_AGGREGATE_MINIMUM : $ aggregatelabel .= get_string ( "aggregatemin" , "rating" ) ; break ; case RATING_AGGREGATE_SUM : $ aggregatelabel .= get_string ( "aggregatesum" , "rating" ) ; break ; } $ aggregatelabel .= get_string ( 'labelsep' , 'langconfig' ) ; return $ aggregatelabel ; }
docstring: Returns a string that describes the aggregation method that was provided.
  
  @param string $aggregationmethod
  @return string describes the aggregation method that was provided
docstring_tokens: Returns a string that describes the aggregation method that was provided .