Class WPDA_Plugin_Table_Base_Model

Base class to handle standard plugin table features

package Default
inherited_from \WPDataAccess\Plugin_Table_Models\WPDA_Plugin_Table_Base_Model

 Methods

Check if const BASE_TABLE_NAME is defined (cannot proceed without)

check_base_table_name() 
InheritedStatic

Return number of records in base table

count() : integer
InheritedStatic

Returns

integer

Get base table name

get_base_table_name() : string
InheritedStatic

Returns

stringBase table name

insert()

insert($csv_name, $real_file_name, $orig_file_name) 
Static

Parameters

$csv_name

$real_file_name

$orig_file_name

preview_mapping()

preview_mapping() 
Static

query()

query($csv_id) 
Static

Parameters

$csv_id

save_mapping()

save_mapping() 
Static

Check if base table exists

table_exists() : boolean
InheritedStatic

Returns

booleanTRUE = table found

update()

update($csv_id, $real_file_name, $orig_file_name) 
Static

Parameters

$csv_id

$real_file_name

$orig_file_name

 Constants

 

Base table name (without prefixes): MUST BE DEFINED IN SUBCLASS!!!

BASE_TABLE_NAME = 'wpda_csv_uploads' 
inherited_from \WPDataAccess\Plugin_Table_Models\WPDA_Plugin_Table_Base_Model::BASE_TABLE_NAME
 

Base table name (without prefixes): MUST BE DEFINED IN SUBCLASS!!!

BASE_TABLE_NAME = null