original_string: public function getExportFields()
      {
          $export_fields = Config::inst()->get(
              $this->modelClass,
              self::EXPORT_FIELDS
          );
  
          if (isset($export_fields) && is_array($export_fields)) {
              $fields = $export_fields;
          } else {
              $fields = parent::getExportFields();
          }
  
          $this->extend("updateExportFields", $fields);
  
          return $fields;
      }
code: public function getExportFields()
      {
          $export_fields = Config::inst()->get(
              $this->modelClass,
              self::EXPORT_FIELDS
          );
  
          if (isset($export_fields) && is_array($export_fields)) {
              $fields = $export_fields;
          } else {
              $fields = parent::getExportFields();
          }
  
          $this->extend("updateExportFields", $fields);
  
          return $fields;
      }
code_tokens: public function getExportFields ( ) { $ export_fields = Config :: inst ( ) -> get ( $ this -> modelClass , self :: EXPORT_FIELDS ) ; if ( isset ( $ export_fields ) && is_array ( $ export_fields ) ) { $ fields = $ export_fields ; } else { $ fields = parent :: getExportFields ( ) ; } $ this -> extend ( "updateExportFields" , $ fields ) ; return $ fields ; }
docstring: Get the default export fields for the current model.
  
  First this checks if there is an `export_fields` config variable set on
  the model class, if not, it reverts to the default behaviour.
  
  @return array
docstring_tokens: Get the default export fields for the current model .