-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
NodeTrigger.php
38 lines (32 loc) · 957 Bytes
/
NodeTrigger.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Functionality for the navigation tree
*/
declare(strict_types=1);
namespace PhpMyAdmin\Navigation\Nodes;
use PhpMyAdmin\Config;
use function __;
/**
* Represents a trigger node in the navigation tree
*/
class NodeTrigger extends Node
{
/** @param string $name An identifier for the new node */
public function __construct(Config $config, string $name)
{
parent::__construct($config, $name);
$this->icon = ['image' => 'b_triggers', 'title' => __('Trigger')];
$this->links = [
'text' => [
'route' => '/triggers',
'params' => ['edit_item' => 1, 'db' => null, 'item_name' => null],
],
'icon' => [
'route' => '/triggers',
'params' => ['export_item' => 1, 'db' => null, 'item_name' => null],
],
];
$this->classes = 'trigger';
$this->urlParamName = 'item_name';
}
}