PHP 클래스 Inpsyde\MultilingualPress\Database\WPDBTableInstaller

부터: 3.0.0
상속: implements Inpsyde\MultilingualPress\Database\TableInstaller
파일 보기 프로젝트 열기: inpsyde/multilingual-press 1 사용 예제들

공개 메소드들

메소드 설명
__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.