Groups extends Base_Schema
Defines the groups database table schema.
Tags
Table of Contents
- $table_name : string
- Name of the table to which the schema belongs to.
- $db : DatabaseCapsule
- Holds the database capsule service.
- __construct() : mixed
- Get things started.
- create() : void
- Create the database table.
- register() : void
- Create the database table if it doesn't exist.
- has_table() : bool
- Determine if the table currently exists.
Properties
$table_name
Name of the table to which the schema belongs to.
public
string
$table_name
= 'wpo_groups'
Without db prefix.
Tags
$db
Holds the database capsule service.
protected
DatabaseCapsule
$db
Tags
Methods
__construct()
Get things started.
public
__construct() : mixed
Tags
Return values
mixed —create()
Create the database table.
public
create() : void
Tags
Return values
void —register()
Create the database table if it doesn't exist.
public
register() : void
Tags
Return values
void —has_table()
Determine if the table currently exists.
private
has_table() : bool