This class should not be instantiated directly. Use it to built exports for specific types. Overwrite methods
header, row and footer for your own type specific export.
Methods
WPDA_Export_Formatted constructor.
__construct()
Inherited
Main method to get arguments and start export.
export()
Inherited
Perform query and get rows
get_rows()
Inherited
Result is stored in $this->rows.
Check if data type is numeric
is_numeric(string $data_type) : boolean
Inherited
Parameters
$data_type
string
Column data type
Returns
boolean
TRUE = numeric
Process one row to be export in XML format
row(array $row)
since |
2.0.13 |
inherited_from |
\WPDataAccess\Utilities\WPDA_Export_Formatted::row() |
Parameters
$row
array
Implement how to process a row here
row($row)
Inherited
Send export file to browser
send_export_file()
Inherited
Properties
Select columns
$columns : array | null
Column data types
$data_types : array
Number of rows found
$row_count : integer
Array containing selected rows
$rows : null
Database schema name
$schema_name : string
Query
$statement : string
Select statement used to perform export.
Database table name
$table_names : string
Primary key columns
$table_primary_key : array
Where clause added to query
$where : string
Handle to table columns
$wpda_list_columns : object | null