| Server IP : 87.98.154.146 / Your IP : 216.73.216.50 Web Server : Apache System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : ohklomafyi ( 52085) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/ohklomafyi/www/wp-content/plugins/wp-seopress/src/Services/Table/ |
Upload File : |
<?php
namespace SEOPress\Services\Table;
defined( 'ABSPATH' ) || exit;
use SEOPress\Models\Table\TableInterface;
use SEOPress\Core\Table\QueryCreateTable;
use SEOPress\Core\Table\QueryExistTable;
class TableManager {
protected $queryCreateTable;
protected $queryExistTable;
public function __construct(){
$this->queryCreateTable = new QueryCreateTable();
$this->queryExistTable = new QueryExistTable();
}
public function exist(TableInterface $table){
return $this->queryExistTable->exist($table);
}
public function create(TableInterface $table){
if($this->exist($table)){
return;
}
$this->queryCreateTable->create($table);
}
public function createTablesIfNeeded($tables){
foreach ($tables as $key => $table) {
$this->create($table);
}
}
}