Automattic\WooCommerce\Admin

ReportCSVExporter::__construct()publicWC 1.0

Constructor.

Метод класса: ReportCSVExporter{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ReportCSVExporter = new ReportCSVExporter();
$ReportCSVExporter->__construct( $type, $args );
$type(строка)
Report type. E.g. 'customers'.
По умолчанию: false
$args(массив)
Report parameters.
По умолчанию: array()

Код ReportCSVExporter::__construct() 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 );
	}
}