Commit Graph

31 Commits

Author SHA1 Message Date
Jarek Jakubowski
b78621e90f yet another setcontent fix 2019-01-24 09:02:31 +01:00
Xiao Hu Tai
8a43d482fc Set correct alignment for phpdoc 2019-01-22 18:31:40 +01:00
Xiao Hu Tai
5b67d8ce0b Add type hints to phpdoc 2019-01-22 18:06:20 +01:00
Xiao Hu Tai
de5e73d8f0 Add @param phpdoc to getContentForTwig 2019-01-22 14:43:33 +01:00
Xiao Hu Tai
9d602d7d87 Simplify getContentForTwig 2019-01-22 14:04:50 +01:00
Xiao Hu Tai
1ef103fb14 Fix query
See 1624cdc
2019-01-22 14:04:50 +01:00
Xiao Hu Tai
e828ffb6e2 Return value can be Content|QueryResultset|null 2019-01-22 14:04:50 +01:00
Bob den Otter
f19e8c733d No double Markup required for text-like fields 2019-01-21 21:38:03 +01:00
Jarek Jakubowski
ce98e9bbaa Refactor 2019-01-11 14:54:27 +01:00
Jarek Jakubowski
1624cdca12 PHPStan level 5 2019-01-02 17:17:49 +01:00
Bob den Otter
82244abb39 Working on PHPStan issues 2018-12-14 19:18:52 +01:00
Xiao Hu Tai
d1a8f35d88 Run ECS check
I know that `$value` can be `string` or `integer`
2018-12-14 15:51:28 +01:00
Xiao Hu Tai
5eba811a08 Fix changes as per review 2018-12-13 17:32:59 +01:00
Xiao Hu Tai
61c5a08adc Fix some more ECS issues 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
5b6a1f61ac Remove taxonomy and search parts (for now) 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
377c61c301 Apply ECS and fix assumptions made by it 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
09a2870350 Add some more type-hinting
There are still a bunch of things that are not implemented yet, so
not sure whether to remove them and add them later. Or keep them,
and modify/delete them later.
2018-12-13 10:28:01 +01:00
Xiao Hu Tai
15c523e5b1 Remove NativeSearchHandler (for now) 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
5558b9c4e7 Directly return array of Content instead of QueryResultset 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
95e86f563f Make queries work again and add small changes 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
60c1b705fb Fix printquery directive 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
deca386917 Fix Order directive 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
223788902f Remove random handler 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
77eb7d033f Start with JOINs on bolt_field table 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
4d02261e3a Run cs-fixer 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
ced02a4f9f Return early if an empty search is attempted
See: bd823dee59 (diff-62941ecfac9b632f60e6d0e5a8eac524)
2018-12-13 10:28:01 +01:00
Xiao Hu Tai
1c7bc21f58 No need to check for getOperation() anymore
and if it was needed a set of `()` was missing in the IF-statement
2018-12-13 10:28:01 +01:00
Xiao Hu Tai
b9df695b90 Cast preg_match parameter to string (warning when integer) 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
80a107644c (WIP) cs-fix 2018-12-13 10:28:01 +01:00
Xiao Hu Tai
e76b25994c (WIP) Refactor DBAL to ORM
Very rough early variant with some assumptions
2018-12-13 10:28:01 +01:00
Xiao Hu Tai
94ae4e0604 Add Bolt\Storage\Query and Bolt\Twig\TwigRecordsView from Bolt 3
This is commit c3ead6d48cc2431d72ae7f81947df7fa5fefa92b in
https://github.com/bolt/bolt

Copied on 2018-10-30 14:00

Once Query works, it could be refactored from `Bolt\Storage\Query`
to `Bolt\Query`
2018-12-13 10:28:01 +01:00