PHP Класс Inpsyde\MultilingualPress\Database\WPDBTableInstaller

С версии: 3.0.0
Наследование: implements Inpsyde\MultilingualPress\Database\TableInstaller
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Inpsyde\MultilingualPress\Database\Table $table = null ) Constructor. Sets up the properties.
install ( Inpsyde\MultilingualPress\Database\Table $table = null ) : boolean Installs the given table.
uninstall ( Inpsyde\MultilingualPress\Database\Table $table = null ) : boolean Uninstalls the given table.

Приватные методы

Метод Описание
get_columns ( array $schema ) : string Returns the according SQL string for the columns in the given table schema.
get_keys ( Inpsyde\MultilingualPress\Database\Table $table ) : string Returns the according SQL string for the keys of the given table.
get_options ( ) : string Returns the SQL string for the table options.
insert_default_content ( Inpsyde\MultilingualPress\Database\Table $table ) : void Inserts the according default content into the given table.
table_exists ( string $table_name ) : boolean Checks if a table with the given name exists in the database.

Описание методов

__construct() публичный метод

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( Inpsyde\MultilingualPress\Database\Table $table = null )
$table Inpsyde\MultilingualPress\Database\Table Optional. Table object. Defaults to null.

install() публичный метод

Installs the given table.
С версии: 3.0.0
public install ( Inpsyde\MultilingualPress\Database\Table $table = null ) : boolean
$table Inpsyde\MultilingualPress\Database\Table Optional. Table object. Defaults to null.
Результат boolean Whether or not the table was installed successfully.

uninstall() публичный метод

Uninstalls the given table.
С версии: 3.0.0
public uninstall ( Inpsyde\MultilingualPress\Database\Table $table = null ) : boolean
$table Inpsyde\MultilingualPress\Database\Table Optional. Table object. Defaults to null.
Результат boolean Whether or not the table was uninstalled successfully.