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;
    }
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;
    }
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 ; }
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
Get the default export fields for the current model .