original_string: public function col_scale($row) {
          global $DB;
  
          if (empty($this->scale)) {
              $dbparams = array('id' => -($this->assignment->get_instance()->grade));
              $this->scale = $DB->get_record('scale', $dbparams);
          }
  
          if (!empty($this->scale->scale)) {
              return implode("\n", explode(',', $this->scale->scale));
          }
          return '';
      }
code: public function col_scale($row) {
          global $DB;
  
          if (empty($this->scale)) {
              $dbparams = array('id' => -($this->assignment->get_instance()->grade));
              $this->scale = $DB->get_record('scale', $dbparams);
          }
  
          if (!empty($this->scale->scale)) {
              return implode("\n", explode(',', $this->scale->scale));
          }
          return '';
      }
code_tokens: public function col_scale ( $ row ) { global $ DB ; if ( empty ( $ this -> scale ) ) { $ dbparams = array ( 'id' => - ( $ this -> assignment -> get_instance ( ) -> grade ) ) ; $ this -> scale = $ DB -> get_record ( 'scale' , $ dbparams ) ; } if ( ! empty ( $ this -> scale -> scale ) ) { return implode ( "\n" , explode ( ',' , $ this -> scale -> scale ) ) ; } return '' ; }
docstring: For download only - list all the valid options for this custom scale.
  
  @param stdClass $row - The row of data
  @return string A list of valid options for the current scale
docstring_tokens: For download only - list all the valid options for this custom scale .