original_string: function export_class_instance($exportclass = null) {
          if (!is_null($exportclass)) {
              $this->started_output = true;
              $this->exportclass = $exportclass;
              $this->exportclass->table = $this;
          } else if (is_null($this->exportclass) && !empty($this->download)) {
              $this->exportclass = new table_dataformat_export_format($this, $this->download);
              if (!$this->exportclass->document_started()) {
                  $this->exportclass->start_document($this->filename, $this->sheettitle);
              }
          }
          return $this->exportclass;
      }
code: function export_class_instance($exportclass = null) {
          if (!is_null($exportclass)) {
              $this->started_output = true;
              $this->exportclass = $exportclass;
              $this->exportclass->table = $this;
          } else if (is_null($this->exportclass) && !empty($this->download)) {
              $this->exportclass = new table_dataformat_export_format($this, $this->download);
              if (!$this->exportclass->document_started()) {
                  $this->exportclass->start_document($this->filename, $this->sheettitle);
              }
          }
          return $this->exportclass;
      }
code_tokens: function export_class_instance ( $ exportclass = null ) { if ( ! is_null ( $ exportclass ) ) { $ this -> started_output = true ; $ this -> exportclass = $ exportclass ; $ this -> exportclass -> table = $ this ; } else if ( is_null ( $ this -> exportclass ) && ! empty ( $ this -> download ) ) { $ this -> exportclass = new table_dataformat_export_format ( $ this , $ this -> download ) ; if ( ! $ this -> exportclass -> document_started ( ) ) { $ this -> exportclass -> start_document ( $ this -> filename , $ this -> sheettitle ) ; } } return $ this -> exportclass ; }
docstring: Get, and optionally set, the export class.
  @param $exportclass (optional) if passed, set the table to use this export class.
  @return table_default_export_format_parent the export class in use (after any set).
docstring_tokens: Get and optionally set the export class .