PMA\libraries\RecentFavoriteTable::__construct PHP Method

__construct() private method

Creates a new instance of RecentFavoriteTable
private __construct ( string $type )
$type string the table type
    private function __construct($type)
    {
        $this->_tableType = $type;
        $server_id = $GLOBALS['server'];
        if (!isset($_SESSION['tmpval'][$this->_tableType . '_tables'][$server_id])) {
            $_SESSION['tmpval'][$this->_tableType . '_tables'][$server_id] = $this->_getPmaTable() ? $this->getFromDb() : array();
        }
        $this->_tables =& $_SESSION['tmpval'][$this->_tableType . '_tables'][$server_id];
    }