at path:
ROOT
/
wp-content
/
plugins
/
wp-pagenavi
/
scb
/
Table.php
run:
R
W
Run
AdminPage.php
12.5 KB
2023-05-06 13:06:44
R
W
Run
Delete
Rename
BoxesPage.php
7.07 KB
2015-08-08 16:48:34
R
W
Run
Delete
Rename
Cron.php
4.88 KB
2021-02-22 10:38:24
R
W
Run
Delete
Rename
Forms.php
21.54 KB
2021-02-22 10:38:24
R
W
Run
Delete
Rename
Hooks.php
2.24 KB
2015-08-08 16:48:34
R
W
Run
Delete
Rename
Options.php
3.82 KB
2019-10-21 18:26:48
R
W
Run
Delete
Rename
PostMetabox.php
6.91 KB
2015-08-08 16:48:34
R
W
Run
Delete
Rename
Table.php
1.21 KB
2015-08-08 16:48:34
R
W
Run
Delete
Rename
Util.php
10.06 KB
2015-08-08 16:48:34
R
W
Run
Delete
Rename
Widget.php
2.61 KB
2015-08-08 16:48:34
R
W
Run
Delete
Rename
composer.json
631 By
2014-01-13 10:05:12
R
W
Run
Delete
Rename
load-composer.php
210 By
2015-08-08 16:48:34
R
W
Run
Delete
Rename
load.php
2.2 KB
2024-12-19 06:01:04
R
W
Run
Delete
Rename
error_log
up
📄
Table.php
Save
<?php /** * Takes care of creating, updating and deleting database tables. */ class scbTable { /** * The table name. * @var string */ protected $name; /** * The table columns. * @var string */ protected $columns; /** * The upgrade method. * @var string */ protected $upgrade_method; /** * Sets up table. * * @param string $name Table name. * @param string $file Reference to main plugin file. * @param string $columns The SQL columns for the CREATE TABLE statement. * @param array $upgrade_method (optional) * * @return void */ public function __construct( $name, $file, $columns, $upgrade_method = 'dbDelta' ) { $this->name = $name; $this->columns = $columns; $this->upgrade_method = $upgrade_method; scb_register_table( $name ); if ( $file ) { scbUtil::add_activation_hook( $file, array( $this, 'install' ) ); scbUtil::add_uninstall_hook( $file, array( $this, 'uninstall' ) ); } } /** * Installs table. * * @return void */ public function install() { scb_install_table( $this->name, $this->columns, $this->upgrade_method ); } /** * Uninstalls table. * * @return void */ public function uninstall() { scb_uninstall_table( $this->name ); } }