You appear to be a bot. Output may be restricted
Description
Set the properties specific to the earnings report.
Usage
$void = EDD_Batch_Earnings_Report_Export::set_properties( $request );
Parameters
- $request
- ( array ) required – The Form Data passed into the batch processing
Returns
void
Source
File name: easy-digital-downloads/includes/admin/reporting/export/class-batch-export-earnings-report.php
Lines:
1 to 4 of 4
public function set_properties( $request ) { $this->start = ( isset( $request['start_month'] ) && isset( $request['start_year'] ) ) ? sanitize_text_field( $request['start_year'] ) . '-' . sanitize_text_field( $request['start_month'] ) . '-1' : ''; $this->end = ( isset( $request['end_month'] ) && isset( $request['end_year'] ) ) ? sanitize_text_field( $request['end_year'] ) . '-' . sanitize_text_field( $request['end_month'] ) . '-' . cal_days_in_month( CAL_GREGORIAN, sanitize_text_field( $request['end_month'] ), sanitize_text_field( $request['end_year'] ) ) : ''; }