Db
Database class
Namespace: WebberZone\Contextual_Related_Posts\Admin
Since: 3.5.0
Source: includes/admin/class-db.php line 21
Methods
__construct()
Constructor class.
Since: 3.5.0
Line: 28
public function __construct( );
get_fulltext_indexes() static
Get the list of fulltext indexes to be created on the posts table.
Since: 4.0.1
Line: 38
static public function get_fulltext_indexes( ): array;
Returns: array — Array of fulltext indexes with their respective columns.
get_old_fulltext_indexes() static
Get the list of old fulltext indexes.
Since: 4.1.0
Line: 62
static public function get_old_fulltext_indexes( ): array;
Returns: array — Array of fulltext indexes with their respective columns.
install_fulltext_index() static
Install a fulltext index on the posts table.
Since: 4.1.0
Line: 79
static public function install_fulltext_index( $index, $columns ): void;
| Type | Name | Description |
|---|---|---|
string | $index | Index name. |
string | $columns | Columns to be indexed. |
Returns: void
create_fulltext_indexes() static
Create fulltext indexes on the posts table.
Since: 3.5.0
Line: 91
static public function create_fulltext_indexes( );
delete_fulltext_indexes() static
Delete the FULLTEXT index.
Since: 3.5.0
Line: 112
static public function delete_fulltext_indexes( );
is_index_installed() static
Check if a fulltext index already exists on the posts table.
Since: 4.1.0
Line: 133
static public function is_index_installed( $index ): bool;
| Type | Name | Description |
|---|---|---|
string | $index | Index name. |
Returns: bool — True if the index exists, false otherwise.
is_fulltext_index_installed() static
Check if all fulltext indexes are installed.
Since: 4.1.0
Line: 171
static public function is_fulltext_index_installed( ): bool;
Returns: bool — True if all fulltext indexes are installed, false if any are missing.
check_fulltext_indexes() static
Check the status of all fulltext indexes.
Since: 4.1.0
Line: 190
static public function check_fulltext_indexes( ): array;
Returns: array — Array of index statuses with ‘installed’ boolean flag and ‘status’ text.
get_posts_table_engine() static
Get the table schema for the posts table.
Since: 3.5.0
Line: 224
static public function get_posts_table_engine( );