Hugues Peccatte
8dc906e923
Define correctly the Database\StructureController parameters
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-06-15 21:40:21 +02:00
Hugues Peccatte
df847d7121
Remove useless 'use'
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-06-15 21:40:21 +02:00
Hugues Peccatte
a395bd2823
Remove as much as possible the old DI system
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-06-15 21:39:21 +02:00
Maurício Meneghini Fauth
efe77cdf06
Rename js/tbl_*.js to js/table/*.js
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-06-07 04:09:05 -03:00
Maurício Meneghini Fauth
c8e98dea2f
Rename js/db_*.js to js/database/*.js
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-06-07 03:37:42 -03:00
Hugues Peccatte
9abd308837
Inject dependencies ( #15271 )
...
Inject dependencies instead of building them.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-06-01 15:13:41 -03:00
Maurício Meneghini Fauth
dfd49d16b8
Fix ESLint warnings in js/functions.js
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-05-30 17:30:16 -03:00
Hugues Peccatte
380707fbcd
Define controllers as services in an external configuration file
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-05-19 01:54:44 +02:00
Maurício Meneghini Fauth
45546661aa
Remove $db from ignore errors for PHPStan
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-05-14 14:54:21 -03:00
Maurício Meneghini Fauth
17195fbe72
Get $dbi from DIC instead of global in entry points
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-04-18 01:09:38 -03:00
Maurício Meneghini Fauth
e700760685
Refactor Controllers\Database\StructureController
...
Move request and response handling to db_structure.php
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2019-03-03 23:20:48 -03:00
Maurício Meneghini Fauth
067a6bfa0b
Rename DatabaseStructureController to StructureController
...
Renames PhpMyAdmin\Controllers\Database\DatabaseStructureController to
PhpMyAdmin\Controllers\Database\StructureController.
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2019-02-13 21:58:47 -02:00
Maurício Meneghini Fauth
38e5b12c1c
Define an absolute path to use for require statements
...
Fixes #6167
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-12-22 14:37:31 -02:00
Maurício Meneghini Fauth
b9c0463d96
Use short array syntax instead of long array syntax
...
Replaces array() with [].
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-30 01:42:21 -03:00
Maurício Meneghini Fauth
af148ad92b
Enable strict mode in PHP files
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-16 04:36:04 -03:00
Maurício Meneghini Fauth
feb200a000
Move DI classes to PhpMyAdmin namespace
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-07-16 15:25:59 -03:00
Maurício Meneghini Fauth
95a409c4f2
Move controllers to PhpMyAdmin namespace
...
- Move base controllers to PhpMyAdmin namespace
- Move database controllers to PhpMyAdmin namespace
- Move server controllers to PhpMyAdmin namespace
- Move table controllers to PhpMyAdmin namespace
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-07-14 11:18:48 -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
Michal Čihař
fc9140c0c5
Remove _url_query attribute from DatabaseStructureController.php
...
It was used only in two locations and in both of them the different URL
query was constructed, so it's better to contruct new queries directly.
Fixes #13373
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-06-13 09:39:23 +02:00
Michal Čihař
298efcf139
Merge branch 'QA_4_6'
2016-04-06 10:19:37 +02:00
Michal Čihař
ec984877d8
Improve performance of database structure page
...
There is no need to get full list of tables twice, it's enough to do it
in the controller itself.
Fixes #12129
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-06 10:17:56 +02:00
Michal Čihař
d8d9ab421e
Always set correct sub_part request
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-06 09:59:22 +02:00
Deven Bansod
3b227209a1
Make phpcs happy
...
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-03-22 11:50:22 +05:30
Madhura Jayaratne
2fb291bbb0
Move packages for better organization
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-11-18 12:29:00 +11:00
Hugues Peccatte
f9d582bd09
Make PHPCS happy.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-11-08 15:58:48 +01: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
e5e447e937
Set namespace on config classes.
...
Update config classes.
Add @noinspection tag.
Update documentation and script.
Set ConfigGenerator in a namespace.
Rename ConfigGenerator filename.
Remove ConfigGenerator requires.
Fix namespaces of mock objects.
Remove useless require.
Add missing 'use'.
Add missing require.
Update PHPDoc.
Fix class test typo.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:30:23 +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
04422d972b
Set namespace on config classes.
...
Update config classes.
Add @noinspection tag.
Update documentation and script.
Set ConfigGenerator in a namespace.
Rename ConfigGenerator filename.
Remove ConfigGenerator requires.
Fix namespaces of mock objects.
Remove useless require.
Add missing 'use'.
Add missing require.
Update PHPDoc.
Fix class test typo.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-08-30 22:16:35 +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
Marc Delisle
bb01f9b2b7
Refactor db_info.inc.php
...
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-08-25 11:16:59 -04:00
Jason
3613f2b6bd
Introduce the ResponseStub
...
Signed-off-by: Jason <jason.daurus@gmail.com>
2015-08-12 16:50:09 +08:00
Madhura Jayaratne
a599b61534
Create separate controllers from table and database structure pages
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-08-10 15:09:17 +05:30
Jason
3fe4f63f62
Remove structure.lib.php and display_structure.inc.php
...
Signed-off-by: Jason <jason.daurus@gmail.com>
2015-07-31 13:55:52 +08:00
Jason
1c28e6a8ab
Creating StructureController
...
Signed-off-by: Jason <jason.daurus@gmail.com>
2015-07-31 01:04:30 +08:00
Jason
2a5a91e9f3
Refactor PMA_getHtmlForShowCreate, PMA_tableHeader, PMA_getHtmlForMoveColumnsDialog, PMA_getHtmlForStructureTableRow
...
Signed-off-by: Jason <jason.daurus@gmail.com>
2015-07-26 21:09:07 +08:00
Jason
8ac6c15b32
Refactor PMA_getHtmlForDisplayTableStats and move template calls into db_structure.php and tbl_structure.php
...
Signed-off-by: Jason <jason.daurus@gmail.com>
2015-07-26 21:05:47 +08:00
Jason
6636153071
Resolve conflicts from upstream
...
Signed-off-by: Jason <jason.daurus@gmail.com>
2015-07-23 11:29:53 +08:00
Hugues Peccatte
37f6b992da
Fix typos.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-06-14 13:50:57 +02:00
Isaac Bennetch
af658d27ee
Merge pull request #1708 from devenbansod/rfe701_using_css
...
RFE#701 - Print View using CSS - Rewrite
2015-06-01 14:50:04 -04:00
Deven Bansod
7c37657cc5
RFE#1676 : Actually a Bug
...
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2015-06-01 13:34:15 +05:30
Deven Bansod
aeae86d7cc
RFE#701 - Print View using CSS - Rewrite
...
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2015-06-01 03:57:50 +05:30
Nisarg Jhaveri
d19104fa72
Fix bug#4925
...
- Don't show page-settings when not needed in db_structure
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
2015-05-26 14:53:17 +05:30
Nisarg Jhaveri
e115adb533
Page-related settings, rfe#1559
...
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
2015-05-18 20:38:07 +05:30