Automattic\WooCommerce\Admin
ReportCSVExporter::__construct()
Constructor.
Method of the class: ReportCSVExporter{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ReportCSVExporter = new ReportCSVExporter(); $ReportCSVExporter->__construct( $type, $args );
- $type(string)
- Report type. E.g. 'customers'.
Default: false - $args(array)
- Report parameters.
Default: array()
ReportCSVExporter::__construct() ReportCSVExporter:: construct code WC 8.7.0
public function __construct( $type = false, $args = array() ) { parent::__construct(); self::maybe_create_directory(); if ( ! empty( $type ) ) { $this->set_report_type( $type ); $this->set_column_names( $this->get_report_columns() ); } if ( ! empty( $args ) ) { $this->set_report_args( $args ); } }