ClassesBigCommerceSchemaReviews Table

Reviews_Table

Class Reviews_Table

  • Full name: \BigCommerce\Schema\Reviews_Table
  • Parent class: \BigCommerce\Schema\Table_Maker
  • Warning: this class is deprecated. This means that this class will likely be removed in a future version.

Constants

ConstantVisibilityTypeValue
NAMEpublic’bc_reviews’

Properties

schema_version

protected $schema_version

tables

protected array $tables

Methods

register_tables

Override for the table registration, as it was removed in version 4.0

public register_tables(): void

get_table_definition

protected get_table_definition(mixed $table): string

Parameters:

ParameterTypeDescription
$tablemixedThe name of the table

Return Value:

The CREATE TABLE statement, suitable for passing to dbDelta


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

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



Automatically generated on 2025-01-21