__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Functionality for the navigation tree
*/
declare(strict_types=1);
namespace PhpMyAdmin\Navigation\Nodes;
use PhpMyAdmin\Html\Generator;
use PhpMyAdmin\Url;
use function __;
/**
* Represents a node that is a child of a database node
* This may either be a concrete child such as table or a container
* such as table container
*/
abstract class NodeDatabaseChild extends Node
{
/**
* Returns the type of the item represented by the node.
*
* @return string type of the item
*/
abstract protected function getItemType();
/**
* Returns HTML for control buttons displayed infront of a node
*
* @return string HTML for control buttons
*/
public function getHtmlForControlButtons(): string
{
$ret = '';
$relationParameters = $this->relation->getRelationParameters();
if ($relationParameters->navigationItemsHidingFeature !== null) {
$db = $this->realParent()->realName;
$item = $this->realName;
$params = [
'hideNavItem' => true,
'itemType' => $this->getItemType(),
'itemName' => $item,
'dbName' => $db,
];
$ret = '<span class="navItemControls">'
. '<a href="' . Url::getFromRoute('/navigation') . '" data-post="'
. Url::getCommon($params, '', false) . '"'
. ' class="hideNavItem ajax">'
. Generator::getImage('hide', __('Hide'))
. '</a></span>';
}
return $ret;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Node.php | File | 26.53 KB | 0644 |
|
| NodeColumn.php | File | 3.22 KB | 0644 |
|
| NodeColumnContainer.php | File | 1.45 KB | 0644 |
|
| NodeDatabase.php | File | 23.17 KB | 0644 |
|
| NodeDatabaseChild.php | File | 1.56 KB | 0644 |
|
| NodeDatabaseChildContainer.php | File | 1.05 KB | 0644 |
|
| NodeDatabaseContainer.php | File | 1.21 KB | 0644 |
|
| NodeEvent.php | File | 1.38 KB | 0644 |
|
| NodeEventContainer.php | File | 1.25 KB | 0644 |
|
| NodeFunction.php | File | 1.46 KB | 0644 |
|
| NodeFunctionContainer.php | File | 1.47 KB | 0644 |
|
| NodeIndex.php | File | 1.07 KB | 0644 |
|
| NodeIndexContainer.php | File | 1.43 KB | 0644 |
|
| NodeProcedure.php | File | 1.47 KB | 0644 |
|
| NodeProcedureContainer.php | File | 1.33 KB | 0644 |
|
| NodeTable.php | File | 11.37 KB | 0644 |
|
| NodeTableContainer.php | File | 1.32 KB | 0644 |
|
| NodeTrigger.php | File | 1.19 KB | 0644 |
|
| NodeTriggerContainer.php | File | 1.29 KB | 0644 |
|
| NodeView.php | File | 1.24 KB | 0644 |
|
| NodeViewContainer.php | File | 1.3 KB | 0644 |
|