PhpMyAdmin\Util is a very huge class with a lot of responsabilities. There is a lot of work to split it, but this may be just a small start, waiting for a more normalized code. * Split Util class regarding the responsabilities * Split the buttonOrImage function Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
45 lines
936 B
PHP
45 lines
936 B
PHP
<?php
|
|
/**
|
|
* Holds the PhpMyAdmin\Controllers\Database\RoutinesController
|
|
*
|
|
* @package PhpMyAdmin\Controllers\Database
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpMyAdmin\Controllers\Database;
|
|
|
|
use PhpMyAdmin\Html\Generator;
|
|
use PhpMyAdmin\Rte\Routines;
|
|
use PhpMyAdmin\Util;
|
|
|
|
/**
|
|
* Routines management.
|
|
*
|
|
* @package PhpMyAdmin\Controllers\Database
|
|
*/
|
|
class RoutinesController extends AbstractController
|
|
{
|
|
/**
|
|
* @param array $params Request parameters
|
|
* @return void
|
|
*/
|
|
public function index(array $params): void
|
|
{
|
|
global $errors, $titles;
|
|
|
|
/**
|
|
* Create labels for the list
|
|
*/
|
|
$titles = Util::buildActionTitles();
|
|
|
|
/**
|
|
* Keep a list of errors that occurred while
|
|
* processing an 'Add' or 'Edit' operation.
|
|
*/
|
|
$errors = [];
|
|
|
|
$routines = new Routines($this->dbi);
|
|
$routines->main($params['type']);
|
|
}
|
|
}
|