William Desportes
89220e0f0f
Change Twig_TemplateWrapper to Twig\TemplateWrapper
...
Ref: https://twig.symfony.com/doc/2.x/deprecated.html
Requires: twig/twig >=2.7
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-04-28 23:49:43 +02:00
Maurício Meneghini Fauth
558226d78e
Extract HTML from StorageEngine::getHtmlSelect()
...
Renames the method to StorageEngine::getArray().
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-03-27 19:31:35 -03:00
William Desportes
fa8bada085
Merge branch 'QA_5_0'
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-02-09 18:07:24 +01:00
William Desportes
84cd7fb4b5
Fix some php "Uncaught Error" when user is missing an extension
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-02-09 16:12:28 +01:00
Maurício Meneghini Fauth
206199105e
Remove useless return type annotations
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-01-23 13:03:29 -03:00
Maurício Meneghini Fauth
676f48349a
Reference global funcs and consts via use statement
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-01-21 22:13:36 -03:00
Maurício Meneghini Fauth
f80d3e3bd4
Remove unnecessary annotations
...
@package, @subpackage and others.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-01-20 17:35:56 -03:00
Maurício Meneghini Fauth
c231652c67
Remove useless comments in PHP docs
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-01-20 14:38:49 -03:00
Maurício Meneghini Fauth
c913eeab38
Add working environment configuration directive
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-01-03 09:44:33 -03:00
Maurício Meneghini Fauth
39f42f848b
Remove some useless docblock comments
...
Fixes docblock spacing
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-12-13 21:15:00 -03:00
Maurício Meneghini Fauth
a958569564
Remove Server\Privileges::formatPrivilege method
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-09-07 11:55:59 -03:00
Maurício Meneghini Fauth
1a14b3e4d3
Remove vim modelines
...
These settings are no longer required as they are guaranteed through
other coding standard tools.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-09-02 09:43:21 -03:00
Maurício Meneghini Fauth
064e5eef0a
Use Collation value object when possible
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-06-28 23:01:30 -03:00
Maurício Meneghini Fauth
553b188e15
Replace $this:: with static:: for static properties
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-06-14 14:47:43 -03:00
Maurício Meneghini Fauth
487f2fc1a4
Replace static::BASE_PATH with self::BASE_PATH in Template
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-06-14 14:21:55 -03:00
Maurício Meneghini Fauth
c8f84fc748
Replace is_null with identical comparison with null
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-06-12 13:28:22 -03:00
Maurício Meneghini Fauth
7be0f6bfae
Reference class names in use statements
...
Sort use statements
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-06-12 00:14:26 -03:00
Hugues Peccatte
91e9acb263
Update PHPDoc
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-05-14 21:59:57 +02:00
William Desportes
40cc2dc813
Fix @var comments to match the phpdoc reference
...
See: http://docs.phpdoc.org/references/phpdoc/tags/var.html
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-05-01 10:54:43 +02:00
Hugues Peccatte
a87900c2cf
Update or add missing @throws
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2019-01-13 09:52:46 +01:00
Maurício Meneghini Fauth
7a30eb2907
Fix scripts/generate-twig-cache PHP error
...
Removes deleted Twig extensions
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-08-18 16:00:35 -03:00
Leonardo Strozzi
76ad22cb8a
Remove partition Twig extensions
...
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-08-03 17:00:30 -03:00
Leonardo Strozzi
aee045f960
Remove index Twig extensions
...
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-08-03 17:00:30 -03:00
Maurício Meneghini Fauth
5edbdf2063
Remove Template::get() method
...
Uses Template::render() instead of Template::get().
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-06-18 19:46:36 -03:00
Maurício Meneghini Fauth
628d27b69a
Refactor Template class
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-06-05 01:08:08 -03:00
Maurício Meneghini Fauth
2005cca77f
Fix methods and properties visibility issues
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-30 21:02:26 -03: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
Leonardo Strozzi
5d0fd81e67
Remove Twig php function extensions
...
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
2018-05-29 23:06:31 -03:00
Maurício Meneghini Fauth
6cf8ee0831
Enable strict mode in some classes
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-05-15 01:03:57 -03:00
Maurício Meneghini Fauth
5fc6631b8f
Use template for displayUntrackedTables method
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-12-10 11:42:53 -02:00
Maurício Meneghini Fauth
c930c7a030
Fix coding standard errors
...
Automatic fixes by phpcbf.
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-12-04 13:40:36 -02:00
Maurício Meneghini Fauth
fe62e84062
Use PSR-4 for Twig classes
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-11-30 16:33:26 -02:00
Michal Čihař
1adf9a493f
Revert "Cache already loaded templates"
...
This reverts commit 56ff2afb74 .
The caching is already done in Twig, no need to duplicate it.
2017-11-02 14:29:53 +01:00
Michal Čihař
56ff2afb74
Cache already loaded templates
...
This should improve performance when loading many small templates.
Issue #13711
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-02 14:11:16 +01:00
Michal Čihař
cae0ac8947
Use static property rather than static variable for caching twig environment
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-02 14:09:41 +01:00
Maurício Meneghini Fauth
f3faca7fd7
Remove support for PHP templates
...
Fix #13297
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-10-29 18:34:31 -02:00
Maurício Meneghini Fauth
9b653cbba3
Port table/relation/common_form template to Twig
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-10-29 16:46:52 -02:00
Maurício Meneghini Fauth
246769a979
Port columns_definitions/transformation to Twig
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-10-25 09:52:30 -02:00
Maurício Meneghini Fauth
c244264092
Port table/structure/display_structure to Twig
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-10-23 11:31:58 -02:00
Maurício Meneghini Fauth
fa5c45444e
Port columns_definitions/partitions to Twig
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-10-17 22:55:24 -02:00
Maurício Meneghini Fauth
973e30f6da
Port database/designer/schema_export to Twig
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-10-12 10:26:25 -03:00
Maurício Meneghini Fauth
98e825aecc
Port database/structure/show_create_row to Twig
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-10-11 21:46:13 -03:00
Maurício Meneghini Fauth
1a33f062de
Port zoom_result_form template to Twig
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-10-05 12:08:27 -03:00
Maurício Meneghini Fauth
1ffa2e1b77
Port table/search/input_box template to Twig
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-10-05 12:08:27 -03:00
Michal Čihař
fd1705f45e
Simplify Template API
...
Remove some features we do not seem to use:
- helper functions (this never worked with Twig)
- per class context, it now has to be passed to render
- this avoids need of array_merge call on every render
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-02 16:37:57 +02:00
Michal Čihař
d7d3b5751c
Avoid constructing twig loader for every template
...
This adds serious overhead and the loader can be still reused.
Issue #13711
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-02 16:19:39 +02:00
Maurício Meneghini Fauth
1d4125f15c
Add array type declarations
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-24 23:49:59 -03:00
Maurício Meneghini Fauth
ce4d28ab32
Port privileges/global_priv_table template to Twig
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-20 21:27:53 -03:00
Maurício Meneghini Fauth
85866598e5
Move Twig classes to PhpMyAdmin namespace
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-07-20 12:19:48 -03:00
Michal Čihař
dc420e2872
Merge branch 'QA_4_7'
2017-07-10 15:00:36 +02:00