original_string: public function exportValue(&$submitvalues, $notused = false) {
          global $COURSE;
  
          // Get the values from all the child elements.
          $vals = array();
          foreach ($this->_elements as $element) {
              $thisexport = $element->exportValue($submitvalues[$this->getName()], true);
              if (!is_null($thisexport)) {
                  $vals += $thisexport;
              }
          }
  
          $type = (isset($vals['modgrade_type'])) ? $vals['modgrade_type'] : 'none';
          $point = (isset($vals['modgrade_point'])) ? $vals['modgrade_point'] : null;
          $scale = (isset($vals['modgrade_scale'])) ? $vals['modgrade_scale'] : null;
          $rescalegrades = (isset($vals['modgrade_rescalegrades'])) ? $vals['modgrade_rescalegrades'] : null;
  
          $return = $this->process_value($type, $scale, $point, $rescalegrades);
          return array($this->getName() => $return, $this->getName() . '_rescalegrades' => $rescalegrades);
      }
code: public function exportValue(&$submitvalues, $notused = false) {
          global $COURSE;
  
          // Get the values from all the child elements.
          $vals = array();
          foreach ($this->_elements as $element) {
              $thisexport = $element->exportValue($submitvalues[$this->getName()], true);
              if (!is_null($thisexport)) {
                  $vals += $thisexport;
              }
          }
  
          $type = (isset($vals['modgrade_type'])) ? $vals['modgrade_type'] : 'none';
          $point = (isset($vals['modgrade_point'])) ? $vals['modgrade_point'] : null;
          $scale = (isset($vals['modgrade_scale'])) ? $vals['modgrade_scale'] : null;
          $rescalegrades = (isset($vals['modgrade_rescalegrades'])) ? $vals['modgrade_rescalegrades'] : null;
  
          $return = $this->process_value($type, $scale, $point, $rescalegrades);
          return array($this->getName() => $return, $this->getName() . '_rescalegrades' => $rescalegrades);
      }
code_tokens: public function exportValue ( & $ submitvalues , $ notused = false ) { global $ COURSE ; // Get the values from all the child elements. $ vals = array ( ) ; foreach ( $ this -> _elements as $ element ) { $ thisexport = $ element -> exportValue ( $ submitvalues [ $ this -> getName ( ) ] , true ) ; if ( ! is_null ( $ thisexport ) ) { $ vals += $ thisexport ; } } $ type = ( isset ( $ vals [ 'modgrade_type' ] ) ) ? $ vals [ 'modgrade_type' ] : 'none' ; $ point = ( isset ( $ vals [ 'modgrade_point' ] ) ) ? $ vals [ 'modgrade_point' ] : null ; $ scale = ( isset ( $ vals [ 'modgrade_scale' ] ) ) ? $ vals [ 'modgrade_scale' ] : null ; $ rescalegrades = ( isset ( $ vals [ 'modgrade_rescalegrades' ] ) ) ? $ vals [ 'modgrade_rescalegrades' ] : null ; $ return = $ this -> process_value ( $ type , $ scale , $ point , $ rescalegrades ) ; return array ( $ this -> getName ( ) => $ return , $ this -> getName ( ) . '_rescalegrades' => $ rescalegrades ) ; }
docstring: Calculate the output value for the element as a whole.
  
  @param array $submitvalues The incoming values from the form.
  @param bool $notused Not used.
  @return array Return value for the element, formatted like field name => value.
docstring_tokens: Calculate the output value for the element as a whole .