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 ); } }