Discounts extends Table
Handles creation of the `discounts` db table.
Tags
Table of Contents
- NAME = 'wdm_discounts'
- Name of the database table without the wpdb prefix.
- $db : Database
- Database connection
- __construct() : mixed
- Initialize the database class.
- create() : void
- Creates the database table.
- get_prefix() : string
- Get the prefix of the database.
- get_table_name() : string
- Returns the name of this table + the wpdb prefix.
- register() : void
- Maybe create the database table if it doesn't exist.
Constants
NAME
Name of the database table without the wpdb prefix.
public
string
NAME
= 'wdm_discounts'
Tags
Properties
$db
Database connection
protected
Database
$db
Methods
__construct()
Initialize the database class.
public
__construct() : mixed
Return values
mixed —create()
Creates the database table.
public
create() : void
Tags
Return values
void —get_prefix()
Get the prefix of the database.
public
get_prefix() : string
Return values
string —get_table_name()
Returns the name of this table + the wpdb prefix.
public
get_table_name() : string
Return values
string —register()
Maybe create the database table if it doesn't exist.
public
register() : void