diff --git a/ChangeLog b/ChangeLog
index 3cef5c9300..4517e1a8c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,6 +31,7 @@ phpMyAdmin - ChangeLog
+ rfe #1385 Hide tables, functions, procedures, events and views in navigation tree
+ rfe #1321 Export view as if it was a table
+ Dropped configuration directive: SQP
++ Dropped configuration directive: MySQLManual*
4.0.6.0 (not yet released)
- bug #4036 Call to undefined function mb_detect_encoding (clarify the doc)
diff --git a/doc/config.rst b/doc/config.rst
index 5ba6954e6c..f728df1d09 100644
--- a/doc/config.rst
+++ b/doc/config.rst
@@ -1836,35 +1836,6 @@ Tabs display settings
* ``tbl_change.php``
* ``sql.php``
-Documentation
--------------
-
-.. config:option:: $cfg['MySQLManualBase']
-
- :type: string
- :default: ``'http://dev.mysql.com/doc/refman'``
-
- If set to an :term:`URL` which points to
- the MySQL documentation (type depends on
- :config:option:`$cfg['MySQLManualType']`), appropriate help links are
- generated.
-
- See `MySQL Documentation page `_ for more
- information about MySQL manuals and their types.
-
-.. config:option:: $cfg['MySQLManualType']
-
- :type: string
- :default: ``'viewable'``
-
- Type of MySQL documentation:
-
- * viewable - "viewable online", current one used on MySQL website
- * searchable - "Searchable, with user comments"
- * chapters - "HTML, one page per chapter"
- * big - "HTML, all on one page"
- * none - do not show documentation links
-
Languages
---------
diff --git a/libraries/Util.class.php b/libraries/Util.class.php
index a9f6438e5b..631c363111 100644
--- a/libraries/Util.class.php
+++ b/libraries/Util.class.php
@@ -443,64 +443,32 @@ class PMA_Util
public static function getMySQLDocuURL($chapter, $link, $anchor = '') {
global $cfg;
- if (($cfg['MySQLManualType'] == 'none') || empty($cfg['MySQLManualBase'])) {
- return '';
- }
-
// Fixup for newly used names:
$chapter = str_replace('_', '-', strtolower($chapter));
$link = str_replace('_', '-', strtolower($link));
- switch ($cfg['MySQLManualType']) {
- case 'chapters':
- if (empty($chapter)) {
- $chapter = 'index';
- }
- if (empty($anchor)) {
- $anchor = $link;
- }
- $url = $cfg['MySQLManualBase'] . '/' . $chapter . '.html#' . $anchor;
- break;
- case 'big':
- if (empty($anchor)) {
- $anchor = $link;
- }
- $url = $cfg['MySQLManualBase'] . '#' . $anchor;
- break;
- case 'searchable':
- if (empty($link)) {
- $link = 'index';
- }
- $url = $cfg['MySQLManualBase'] . '/' . $link . '.html';
- if (! empty($anchor)) {
- $url .= '#' . $anchor;
- }
- break;
- case 'viewable':
- default:
- if (empty($link)) {
- $link = 'index';
- }
- $mysql = '5.5';
- $lang = 'en';
- if (defined('PMA_MYSQL_INT_VERSION')) {
- if (PMA_MYSQL_INT_VERSION >= 50600) {
- $mysql = '5.6';
- } else if (PMA_MYSQL_INT_VERSION >= 50500) {
- $mysql = '5.5';
- } else if (PMA_MYSQL_INT_VERSION >= 50100) {
- $mysql = '5.1';
- } else {
- $mysql = '5.0';
- }
- }
- $url = $cfg['MySQLManualBase']
- . '/' . $mysql . '/' . $lang . '/' . $link . '.html';
- if (! empty($anchor)) {
- $url .= '#' . $anchor;
- }
- break;
+ if (empty($link)) {
+ $link = 'index';
}
+ $mysql = '5.5';
+ $lang = 'en';
+ if (defined('PMA_MYSQL_INT_VERSION')) {
+ if (PMA_MYSQL_INT_VERSION >= 50600) {
+ $mysql = '5.6';
+ } else if (PMA_MYSQL_INT_VERSION >= 50500) {
+ $mysql = '5.5';
+ } else if (PMA_MYSQL_INT_VERSION >= 50100) {
+ $mysql = '5.1';
+ } else {
+ $mysql = '5.0';
+ }
+ }
+ $url = 'http://dev.mysql.com/doc/refman/'
+ . $mysql . '/' . $lang . '/' . $link . '.html';
+ if (! empty($anchor)) {
+ $url .= '#' . $anchor;
+ }
+
return PMA_linkURL($url);
}
diff --git a/libraries/config.default.php b/libraries/config.default.php
index be219e3a45..d24c35b682 100644
--- a/libraries/config.default.php
+++ b/libraries/config.default.php
@@ -2244,32 +2244,6 @@ $cfg['Import']['xls_empty_rows'] = true;
*/
$cfg['Import']['xlsx_col_names'] = false;
-/**
- * Link to the official MySQL documentation.
- * Be sure to include no trailing slash on the path.
- * See http://dev.mysql.com/doc/ for more information
- * about MySQL manuals and their types.
- *
- * @global string $cfg['MySQLManualBase']
- */
-$cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
-
-/**
- * Type of MySQL documentation:
- * viewable - "viewable online", current one used on MySQL website
- * searchable - "Searchable, with user comments"
- * chapters - "HTML, one page per chapter"
- * chapters_old - "HTML, one page per chapter",
- * format used prior to MySQL 5.0 release
- * big - "HTML, all on one page"
- * old - old style used in phpMyAdmin 2.3.0 and sooner
- * none - do not show documentation links
- *
- * @global string $cfg['MySQLManualType']
- */
-$cfg['MySQLManualType'] = 'viewable';
-
-
/*******************************************************************************
* PDF options
*/
diff --git a/test/classes/PMA_DbSearch_test.php b/test/classes/PMA_DbSearch_test.php
index f889fb4450..28372bbb2b 100644
--- a/test/classes/PMA_DbSearch_test.php
+++ b/test/classes/PMA_DbSearch_test.php
@@ -42,8 +42,6 @@ class PMA_DbSearch_Test extends PHPUnit_Framework_TestCase
$this->object = new PMA_DbSearch('pma_test');
$GLOBALS['server'] = 0;
$GLOBALS['cfg']['ServerDefault'] = 1;
- $GLOBALS['cfg']['MySQLManualType'] = 'viewable';
- $GLOBALS['cfg']['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
$GLOBALS['cfg']['ShowHint'] = true;
$GLOBALS['db'] = 'pma';
}
diff --git a/test/classes/PMA_TableSearch_test.php b/test/classes/PMA_TableSearch_test.php
index 5a1e078fab..019eee434a 100644
--- a/test/classes/PMA_TableSearch_test.php
+++ b/test/classes/PMA_TableSearch_test.php
@@ -42,30 +42,28 @@ class PMA_TableSearch_Test extends PHPUnit_Framework_TestCase
*/
$_SESSION['PMA_Theme'] = new PMA_Theme();
$_POST['zoom_submit'] = 'zoom';
-
+
$GLOBALS['server'] = 1;
$GLOBALS['PMA_PHP_SELF'] = 'index.php';
$GLOBALS['pmaThemeImage'] = 'themes/dot.gif';
$GLOBALS['is_ajax_request'] = false;
$GLOBALS['cfgRelation'] = PMA_getRelationsParam();
$GLOBALS['PMA_Types'] = new PMA_Types_MySQL();
-
+
$GLOBALS['cfg']['ServerDefault'] = 1;
$GLOBALS['cfg']['maxRowPlotLimit'] = 500;
$GLOBALS['cfg']['Server']['DisableIS'] = false;
$GLOBALS['cfg']['ServerDefault'] = 1;
- $GLOBALS['cfg']['MySQLManualType'] = 'viewable';
- $GLOBALS['cfg']['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
$GLOBALS['cfg']['ActionLinksMode'] = 'both';
$GLOBALS['cfg']['ForeignKeyMaxLimit'] = 100;
$GLOBALS['cfg']['InitialSlidersState'] = 'closed';
$GLOBALS['cfg']['MaxRows'] = 25;
$GLOBALS['cfg']['TabsMode'] = 'text';
-
+
$dbi = $this->getMockBuilder('PMA_DatabaseInterface')
->disableOriginalConstructor()
->getMock();
-
+
$columns =array(
array(
'Field' => 'Field1',
@@ -82,7 +80,7 @@ class PMA_TableSearch_Test extends PHPUnit_Framework_TestCase
);
$dbi->expects($this->any())->method('getColumns')
->will($this->returnValue($columns));
-
+
$show_create_table = "CREATE TABLE `pma_bookmark` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dbase` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
@@ -92,7 +90,7 @@ class PMA_TableSearch_Test extends PHPUnit_Framework_TestCase
PRIMARY KEY (`id`),
KEY `foreign_field` (`foreign_db`,`foreign_table`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Bookmarks'";
-
+
$dbi->expects($this->any())->method('fetchValue')
->will($this->returnValue($show_create_table));
@@ -107,7 +105,7 @@ class PMA_TableSearch_Test extends PHPUnit_Framework_TestCase
*/
protected function tearDown()
{
-
+
}
/**
@@ -148,7 +146,7 @@ class PMA_TableSearch_Test extends PHPUnit_Framework_TestCase
'Do a "query by example"',
$form
);
-
+
//$this->_searchType == 'normal'
$tableSearch = new PMA_TableSearch("PMA", "PMA_BookMark", "normal");
$url_goto = "http://phpmyadmin.net";
@@ -161,7 +159,7 @@ class PMA_TableSearch_Test extends PHPUnit_Framework_TestCase
'Do a "query by example"',
$form
);
-
+
//$this->_searchType == 'replace'
$tableSearch = new PMA_TableSearch("PMA", "PMA_BookMark", "replace");
$url_goto = "http://phpmyadmin.net";
@@ -193,15 +191,15 @@ class PMA_TableSearch_Test extends PHPUnit_Framework_TestCase
$this->assertContains(
__('Table Search'),
$html
- );
+ );
$this->assertContains(
__('Zoom Search'),
$html
- );
+ );
$this->assertContains(
__('Find and Replace'),
$html
- );
+ );
}
/**
@@ -223,7 +221,7 @@ class PMA_TableSearch_Test extends PHPUnit_Framework_TestCase
json_encode($data),
$html
);
-
+
}
/**
@@ -239,15 +237,15 @@ class PMA_TableSearch_Test extends PHPUnit_Framework_TestCase
$replaceWith = "Column";
$charSet = "UTF-8";
$tableSearch->replace($columnIndex, $find, $replaceWith, $charSet);
-
+
$sql_query = $GLOBALS['sql_query'];
- $result = "UPDATE `PMA`.`PMA_BookMark` SET `Field1` = "
- . "REPLACE(`Field1`, 'Field', 'Column') "
+ $result = "UPDATE `PMA`.`PMA_BookMark` SET `Field1` = "
+ . "REPLACE(`Field1`, 'Field', 'Column') "
. "WHERE `Field1` LIKE '%Field%' COLLATE UTF-8_bin";
$this->assertEquals(
$result,
$sql_query
- );
+ );
}
/**
@@ -267,7 +265,7 @@ class PMA_TableSearch_Test extends PHPUnit_Framework_TestCase
__('Replace with:'),
$html
);
-
+
}
/**
@@ -283,9 +281,9 @@ class PMA_TableSearch_Test extends PHPUnit_Framework_TestCase
'replace_value',
'count'
);
-
+
$dbi = $GLOBALS['dbi'];
-
+
$dbi->expects($this->at(3))->method('fetchRow')
->will($this->returnValue($value));
@@ -293,20 +291,20 @@ class PMA_TableSearch_Test extends PHPUnit_Framework_TestCase
->will($this->returnValue(false));
$GLOBALS['dbi'] = $dbi;
-
+
$tableSearch = new PMA_TableSearch("PMA", "PMA_BookMark", "zoom");
$columnIndex = 0;
$find = "Field";
$replaceWith = "Column";
$charSet = "UTF-8";
-
+
$html = $tableSearch->getReplacePreview(
- $columnIndex,
- $find,
- $replaceWith,
+ $columnIndex,
+ $find,
+ $replaceWith,
$charSet
);
-
+
$this->assertContains(
'