ClassesBigCommerceSchemaTable Maker

Table_Maker

Class Table_Maker

Utility class for creating/updating custom tables

Properties

tables

protected array $tables

Methods

register_tables

Register tables with WordPress, and create them if needed

public register_tables(): void

get_table_definition

protected get_table_definition(string $table): string
  • This method is abstract.

Parameters:

ParameterTypeDescription
$tablestringThe name of the table

Return Value:

The CREATE TABLE statement, suitable for passing to dbDelta


get_full_table_name

protected get_full_table_name(string $table): string

Parameters:

ParameterTypeDescription
$tablestring

Return Value:

The full name of the table, including the table prefix for the current blog


Inherited methods

schema_update_required

Determine if the database schema is out of date by comparing the integer found in $this->schema_version with the option set in the WordPress options table

protected schema_update_required(): bool

mark_schema_update_complete

Update the option in WordPress to indicate that our schema is now up to date

protected mark_schema_update_complete(): void


Automatically generated on 2025-01-21