Automattic\WooCommerce\Admin
ReportCSVExporter::__construct()
Constructor.
Метод класса: ReportCSVExporter{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ReportCSVExporter = new ReportCSVExporter(); $ReportCSVExporter->__construct( $type, $args );
- $type(строка)
- Report type. E.g. 'customers'.
По умолчанию: false - $args(массив)
- Report parameters.
По умолчанию: array()
Код ReportCSVExporter::__construct() ReportCSVExporter:: construct WC 9.7.1
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 ); } }