Commit Graph

131 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
e7e7d56c75 Retrieve parameters from $_POST in browse foreigners
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-11-10 20:48:59 -02:00
Maurício Meneghini Fauth
d98658187a Replace PhpMyAdmin\Relation static calls
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-03-25 19:32:13 -03:00
Maurício Meneghini Fauth
c3744cb755 Refactor PhpMyAdmin\BrowseForeigners class
Static methods have been replaced with instance methods

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-01-18 19:27:13 -02:00
Maurício Meneghini Fauth
1fdc2aafc4 Replace globals with DI in PhpMyAdmin\BrowseForeigners
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-11-04 18:55:20 -02:00
Maurício Meneghini Fauth
11ff8cee11 Refactor browse_foreigners functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-11 22:09:05 -03:00
Maurício Meneghini Fauth
e2c83b954b Refactor relation functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-08-22 20:51:27 -03:00
Maurício Meneghini Fauth
ca910e8de8 Move classes to PhpMyAdmin namespace
- Move Table to PhpMyAdmin namespace
- Move Template to PhpMyAdmin namespace
- Move ThemeManager to PhpMyAdmin namespace
- Move Theme to PhpMyAdmin namespace
- Move Tracker to PhpMyAdmin namespace
- Move Transformations to PhpMyAdmin namespace
- Move TypesMySQL to PhpMyAdmin namespace
- Move Types to PhpMyAdmin namespace
- Move Util to PhpMyAdmin namespace
- Move VersionInformation to PhpMyAdmin namespace
- Move Url to PhpMyAdmin namespace

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-07-08 10:54:21 -03:00
Maurício Meneghini Fauth
119563b7ea Move classes to PhpMyAdmin namespace
- Move OpenDocument to PhpMyAdmin namespace
- Move OutputBuffering to PhpMyAdmin namespace
- Move Partition to PhpMyAdmin namespace
- Move Pdf class to PhpMyAdmin namespace
- Move RecentFavoriteTable to PhpMyAdmin namespace
- Move Response to PhpMyAdmin namespace

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-06-30 23:44:10 -03:00
Maurício Meneghini Fauth
64b1b79933 Refactor the transformations into static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-05-31 16:36:09 -03:00
Michal Čihař
faffa92f22 Fixed related field selection for native relations
The PMA_getForeigners handles just fine both situations, so there is no
need to check the configuration in advance.

Fixes #12967

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-03-01 15:43:33 +01:00
Michal Čihař
308c9d7951 Simplify Response object handling
- always use use and short name
- avoid calling getInstance() several times in one script

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-07 18:17:59 +01:00
Deven Bansod
ec08844246 Use a forcing parameter to get $the_total records for a foreign key column
Required at some specific places for ex. browse_foreigners.php (reqd for pagination)
This is in continuation of original fix for #12257 (in #12685)

Also fixed an error in an old commit 9880f57344
related to LIMIT clause generation

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-11-10 11:43:19 +05:30
Hugues Peccatte
f0ba28fc1d Set namespace on Advisor, Config, Console and Util classes.
Set namespace on DbQbe.
Set namespace to 'DbSearch'.
Split Advisor.class.php file.
Change Advisor namespace.
Rename DbQbe class and file.
Set namespace on DisplayResults.
Set namespace on Error.
Use namespace for ErrorHandler.
Add class autoloader.
Change ErrorHandler filename.
Remove some require.
Update Config namespace path.
Update PMA_Util to PMA\libraries\Util.
Rename Font and File classes files.
Use namespace for Footer.
Set namespace in all libraries classes.
Namespace OutputBuffering.
Export SubPartition.
Rename Partition file.
Namespace PDF.
Namespace RecentFavoriteTable.
Replace PMA_Response by Response and PMA_Message by Message.
Update uses and calls.
Fix unit tests.
Fix SqlParser autoload.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:22:52 +02:00
Rahul Kadyan
4d308ba364 Remove unneeded closing tags
Closing tags at the end of file are not mandatory. It is often
suggested to omit to closing tags at the end of file to prevent
unwanted effects as PHP will start output buffering if there is
any character after closing tag.

Reference: http://php.net/manual/en/language.basic-syntax.phptags.php

Signed-off-by: Rahul Kadyan <hi@znck.me>
2015-03-06 23:37:35 +05:30
Edward Cheng
fb14e92d62 PMA console, history and bookmarks.
Modified: resizer of navigation bar: whole-time-bind events removed.

Signed-off-by: Edward Cheng <c4150221@gmail.com>
2014-06-25 21:22:33 +08:00
Chirayu Chiripal
c3f2abe873 FR #1487: Browse Foreign Values should be modal dialog
Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
2014-05-14 17:30:11 +05:30
Marc Delisle
cbaa45d340 bug #4217 Current value not highlighted when browsing foreign values
Signed-off-by: Marc Delisle <marc@infomarc.info>
2014-01-06 09:23:31 -05:00
Madhura Jayaratne
ca16959719 Remove trailing white spaces 2013-10-20 10:21:34 +05:30
Spun Nakandala
aca7522b53 error corrected 2013-09-06 21:43:55 +05:30
Spun Nakandala
c38da98d4a added browse_foreigners.lib.php and extracted methods from browse_foreigners to it. 2013-09-06 21:00:16 +05:30
Marc Delisle
32f4c5568c Directly use request parameter 2013-08-26 06:20:06 -04:00
Marc Delisle
0c6e134d36 Fix merge conflicts 2013-08-07 08:31:38 -04:00
Marc Delisle
c2b2c7b6e9 Bug #4048 Cannot select foreign value in Search 2013-08-07 08:27:34 -04:00
Michal Čihař
0a3d1d5be8 Better names for URL generating functions 2013-08-07 10:58:17 +02:00
Marc Delisle
76133dd007 Directly use the request parameter 2013-08-06 05:42:34 -04:00
Marc Delisle
ecb2aa89d3 Directly use the request parameter 2013-08-06 05:23:48 -04:00
Marc Delisle
03f5339d6f Dead code 2013-08-06 05:20:03 -04:00
Marc Delisle
246cfdb90e Directly use the request parameter 2013-08-05 06:00:53 -04:00
Madhura Jayaratne
e5519859fb Make all string function accessible via $GLOBALS['PMA_String'] 2013-07-17 16:36:13 +05:30
ayushchd
2e542c4f95 Group native and mb string functions into classes 2013-06-20 12:30:04 +05:45
Marc Delisle
cec2f43648 Merge commit '34e12cf' 2013-05-29 09:51:31 -04:00
Marc Delisle
34e12cf77e bug #3956 "Browse foreign values" search filter / page selector not working 2013-05-29 09:47:55 -04:00
Michal Čihař
2fbb4cee0d Consistently include colon in strings to translate
In some languages this makes difference in translating, so it's better
to give translators full context.
2013-04-25 14:22:31 +02:00
Aris Feryanto
ab6e9f0b24 Grid editing: enable edit box for relational value 2012-10-28 23:15:47 +08:00
Chanaka Indrajith
6971295e96 Renamed PMA_CommonFunctions::getInstance()-> with PMA_Util:: 2012-09-16 14:41:47 +05:30
Dieter Adriaenssens
a9dd9acc28 remove whitespace 2012-09-05 18:18:35 +02:00
Dieter Adriaenssens
9beb4b47e4 remove mixed php and html 2012-09-05 18:18:35 +02:00
Madhura Jayaratne
ba16e22315 Coding style improvements 2012-08-31 00:46:35 +05:30
Chanaka Indrajith
766466135e Implement class behavior of common.lib.php file 2012-06-22 23:38:33 +05:30
Rouslan Placella
ae6e50a8a8 Drop display() from Header and Footer classes. The Response class will do all the rendering. 2012-06-11 14:06:04 +01:00
Rouslan Placella
d9bedbd75e Finished integrating the PMA_Footer class 2012-06-11 14:06:03 +01:00
Rouslan Placella
a054562100 PMA_Footer and PMA_Header no longer need to be singletons 2012-06-11 14:06:03 +01:00
Rouslan Placella
a14da7bd5a Small code cleanup 2012-06-11 14:06:03 +01:00
Rouslan Placella
753dd1a7d2 Use PMA_Header class in browse_foreigners.php 2012-06-11 14:06:02 +01:00
Rouslan Placella
936f2efb74 Fixed missing parameter in browse_foreigners.php 2012-05-24 00:29:08 +01:00
Rouslan Placella
933ad71021 Merged CSS stylesheets 2012-05-18 19:14:09 +01:00
Willian Gustavo Veiga
d44db6b80a Code readability improved. 2012-05-04 08:42:03 -03:00
Willian Gustavo Veiga
139877978a code readability improved 2012-05-01 19:26:52 -03:00
Willian Gustavo Veiga
ec42cfb96a Some phpcs warnings fixed 2012-05-01 14:49:04 -03:00
Dieter Adriaenssens
543087f54c fix indentation 2012-04-29 00:40:12 +02:00