Commit Graph

224 Commits

Author SHA1 Message Date
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
Hugues Peccatte
78a803a8c8 Move libraries/navigation/nodes classes into a namespace.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-04 23:31:32 +02:00
Hugues Peccatte
17274d9a54 Move PMA/DI namespace to PMA\libraries\di.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-02 22:02:46 +02:00
Hugues Peccatte
5207ba43a7 Update controllers' namespace.
Move table controllers into 'table' folder.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:56:14 +02:00
Hugues Peccatte
7f8f34e89d Remove classes require_once.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:30:22 +02:00
Hugues Peccatte
0761fb1801 Rename classes files.
Rename classes.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:30:21 +02:00
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
Hugues Peccatte
f54bbe7a70 Remove classes require_once.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-08-29 23:02:10 +02:00
Hugues Peccatte
567a628947 Rename classes files.
Rename classes.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-08-29 22:29:21 +02:00
Hugues Peccatte
2fe6ff4655 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-08-29 16:27:21 +02:00
Jason
3613f2b6bd Introduce the ResponseStub
Signed-off-by: Jason <jason.daurus@gmail.com>
2015-08-12 16:50:09 +08:00
Jason
6d0d61e7f0 Recover some logic tests - TableSearchController
Signed-off-by: Jason <jason.daurus@gmail.com>
2015-08-12 16:43:12 +08:00
Hugues Peccatte
08919d9252 Make PHPCS happy.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-07-25 09:36:48 +02:00
Madhura Jayaratne
9fb4dcb863 Use require or include based on whether the file is being conditionally
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-07-24 07:40:41 +05:30
Jason
6636153071 Resolve conflicts from upstream
Signed-off-by: Jason <jason.daurus@gmail.com>
2015-07-23 11:29:53 +08:00
Dan Ungureanu
f7689d5c7e Replaced more of the old parser.
Updated sql-parser library.

Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
2015-07-10 23:18:15 +03:00
Deven Bansod
edad7fcb3c Replace script names as config options with plain english words
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2015-06-13 04:41:54 +05:30
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
Marc Delisle
629e08cbc4 Code cleanup: $disp_mode was always empty at this point
Signed-off-by: Marc Delisle <marc@infomarc.info>
2014-12-28 09:48:04 -05:00
Ann + J.M
6feb3b0d3a Fix failing unit tests
Signed-off-by: Ann + J.M. <phpMyAdmin@ZweiSteinSoft.de>
2014-10-22 20:06:14 +02:00
Ann + J.M
b1a7039ae3 Convert PMA_URL_getCommon calls to new style
Rewritten tests need validation
Signed-Off-By: Ann + J.M. <phpMyAdmin@ZweiSteinSoft.de>
2014-10-18 19:42:29 +02:00
Marc Delisle
484a85a51b Clarify variable's origin
Signed-off-by: Marc Delisle <marc@infomarc.info>
2014-07-24 05:11:00 -07:00
Ashutosh Dhundhara
2a7cdbdb75 RFE#654: Range Search Capability.
Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>
2014-06-24 16:47:34 +05:30
Chirayu Chiripal
742e1d13d2 fix: call to undefined function on table search
Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
2014-06-14 13:22:19 +05:30
Ashutosh Dhundhara
5ea6345adb Filter rows option on "Browse" table page.
Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>

Filter rows feature on "Browse" table page.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>

Included table filter plugin in tbl_select.php.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>
2014-03-31 17:52:48 +05:30
Michal Čihař
0a3d1d5be8 Better names for URL generating functions 2013-08-07 10:58:17 +02:00
Michal Čihař
9c141ee607 Various coding style fixes 2013-08-06 15:56:32 +02:00
Marc Delisle
539eeed057 Globals generated from POST were not used 2013-07-25 07:13:37 -04:00
Marc Delisle
3c83f1f6d2 Fix comment due to refactoring 2013-07-21 07:51:36 -04:00
Spun Nakandala
ea81960b6c removed include sql.php from tbl_select.php 2013-07-21 04:32:17 +05:30
Kasun Chathuranga
41a497d169 Implement 'find and replace in a column' feature 2013-06-26 20:30:28 +05:30
xmujay
d23aad1d5b refactor mysql_charsets.inc.php 2013-06-11 13:25:54 +08:00
Marc Delisle
fb3b7541e3 Improve comment 2013-04-11 08:00:49 -04:00
Marc Delisle
431df615f2 Upgraded to jquery-ui-timepicker-addon 1.1.1 2013-01-01 11:50:04 -05:00
Madhura Jayaratne
c4a5af9182 Merge branch 'QA_3_5'
Conflicts:
	js/tbl_select.js
	po/da.po
	tbl_select.php
2012-08-06 22:04:02 +05:30
Madhura Jayaratne
7e0028e4af bug #3540922 [edit] Error searching table with many fields 2012-08-06 21:44:16 +05:30
Madhura Jayaratne
ad1bc257e4 bug #3548491 [interface] Inline query editor doesn't work from search results 2012-07-28 17:29:52 +05:30
Atul Pratap Singh
a2de4d5c34 Use PMA_TableSearch in tbl_select.php 2012-06-15 15:33:36 +05:30
Rouslan Placella
eb98110541 Dropped footer.inc.php 2012-06-11 14:06:04 +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
4a740376c8 Dropped header.inc.php in favor of the PMA_Header class 2012-06-11 14:06:02 +01:00
Atul Pratap Singh
67190258c1 Remove unnecessary variable columnCount 2012-06-07 10:13:08 +05:30
Atul Pratap Singh
54be18e0d1 Generalize some new functions for zoom search 2012-06-02 11:24:57 +05:30
Atul Pratap Singh
9f14151c7c Remove more variables from post_params 2012-06-01 12:42:50 +05:30
Atul Pratap Singh
9469041654 Resolve conflicts in tbl_select.php 2012-05-29 20:06:55 +05:30
Michal Čihař
ad8f4cea4f Need to have type without length here 2012-05-29 14:32:16 +02:00
Atul Pratap Singh
d777dce1b9 Removed some variables from post_params array 2012-05-28 19:25:22 +05:30
Marc Delisle
e1bf9394c9 Already implemented 2012-05-28 07:43:51 -04:00
Atul Pratap Singh
d3aff8b31a Move functions from tbl_select.php to libraries/tbl_select.lib.php 2012-05-25 22:53:27 +05:30
Atul Pratap Singh
470feae4f3 Variable name improvements in tbl_select.php 2012-05-23 23:53:28 +05:30