Automattic\WooCommerce\Admin
ReportCSVExporter::__construct
Constructor.
Method of the class: ReportCSVExporter{}
No Hooks.
Returns
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 10.5.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 );
}
}