Moves the recent/favorite table entry point logic to the controller and removes the entry point file. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
36 lines
762 B
PHP
36 lines
762 B
PHP
<?php
|
|
/**
|
|
* @package PhpMyAdmin\Controllers\Table
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpMyAdmin\Controllers\Table;
|
|
|
|
use PhpMyAdmin\RecentFavoriteTable;
|
|
|
|
/**
|
|
* Browse recent and favorite tables chosen from navigation.
|
|
*
|
|
* @package PhpMyAdmin\Controllers\Table
|
|
*/
|
|
class RecentFavoriteController extends AbstractController
|
|
{
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function index(): void
|
|
{
|
|
RecentFavoriteTable::getInstance('recent')->removeIfInvalid(
|
|
$_REQUEST['db'],
|
|
$_REQUEST['table']
|
|
);
|
|
|
|
RecentFavoriteTable::getInstance('favorite')->removeIfInvalid(
|
|
$_REQUEST['db'],
|
|
$_REQUEST['table']
|
|
);
|
|
|
|
require ROOT_PATH . 'libraries/entry_points/sql.php';
|
|
}
|
|
}
|