Initial Commit
This commit is contained in:
89
inc/database/sites/class-sites-table.php
Normal file
89
inc/database/sites/class-sites-table.php
Normal file
@ -0,0 +1,89 @@
|
||||
<?php
|
||||
/**
|
||||
* Class used for querying blogs.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Database\Sites
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
||||
namespace WP_Ultimo\Database\Sites;
|
||||
|
||||
use WP_Ultimo\Database\Engine\Table;
|
||||
|
||||
// Exit if accessed directly
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Setup the "wp_blog" database table
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
final class Sites_Table extends Table {
|
||||
|
||||
/**
|
||||
* Table prefix, including the site prefix.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @var string
|
||||
*/
|
||||
protected $prefix = '';
|
||||
|
||||
/**
|
||||
* Table name
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @var string
|
||||
*/
|
||||
protected $name = 'blogs';
|
||||
|
||||
/**
|
||||
* Is this table global?
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @var boolean
|
||||
*/
|
||||
protected $global = true;
|
||||
|
||||
/**
|
||||
* Table current version
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @var string
|
||||
*/
|
||||
protected $version = '2.0.0';
|
||||
|
||||
/**
|
||||
* Sites constructor.
|
||||
*
|
||||
* @access public
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
*/
|
||||
public function __construct() {
|
||||
|
||||
parent::__construct();
|
||||
|
||||
} // end __construct;
|
||||
|
||||
/**
|
||||
* Setup the database schema
|
||||
*
|
||||
* @access protected
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
*/
|
||||
protected function set_schema() {
|
||||
|
||||
$this->schema = false;
|
||||
|
||||
} // end set_schema;
|
||||
|
||||
/**
|
||||
* Do nothing as this table already exists.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
public function install() {} // end install;
|
||||
|
||||
} // end class Sites_Table;
|
Reference in New Issue
Block a user