Свойство | Тип | Описание | |
---|---|---|---|
$db_version | String | ||
$db_version_option_name | |||
$install_db_version | |||
$mu_single_table | |||
$plugin_path | |||
$rt_plugin_info | |||
$schema_path |
Метод | Описание | |
---|---|---|
__construct ( $current_version = false, $plugin_path = false, $schema_path = false, $mu_single_table = false ) | Set db current and installed version and also plugin info in rt_plugin_info variable. | |
check_upgrade ( ) : boolean | Check upgrade by comparing version db_version. | |
create_table ( string $sql ) : void | Create table using dbDelta. | |
do_upgrade ( ) : void | Do upgrade by comparing version db_version. | |
genrate_sql ( string $file_name, string $file_content ) : string | Genrate sql query. | |
genrate_table_name ( string $file_name ) : string | Genrate table_name. | |
get_db_version_option_name ( ) : string | Get db_version option name. | |
get_install_db_version ( ) : string | Get installed db_version. | |
table_exists ( string $table ) : boolean | Check if table_exists. |
public __construct ( $current_version = false, $plugin_path = false, $schema_path = false, $mu_single_table = false ) |
public check_upgrade ( ) : boolean | ||
Результат | boolean |
public create_table ( string $sql ) : void | ||
$sql | string | |
Результат | void |
public do_upgrade ( ) : void | ||
Результат | void |
public genrate_table_name ( string $file_name ) : string | ||
$file_name | string | |
Результат | string |
public get_db_version_option_name ( ) : string | ||
Результат | string |
public get_install_db_version ( ) : string | ||
Результат | string |
static public table_exists ( string $table ) : boolean | ||
$table | string | |
Результат | boolean |