Mathieu Darse
d778ab5126
Refactor query context
...
No more private collection map, uses new features from LimitedStructure.
From now on, Context tries to return Field objects instead of strings.
New context methods:
- getUnrestrictedFields()
- getPrivateFields()
- localizeField(Field) (signature changed)
- localizeFieldName(string)
QueryContext::localizeField() now takes a Field object, use localizeFieldName() if you want to pass a string.
Field::getIndexFieldName() renamed to Field::getIndexField().
Raw index fields are now obtained with Field::getIndexField(true).
2015-07-10 17:33:10 +02:00
Benoît Burnichon
c0ceb65ba2
Prepared statements does not handle string to int conversion.
...
Convert it from PHP.
2015-07-10 17:19:00 +02:00
Benoît Burnichon
277808c441
Reduce code complexity using Dbal methods.
2015-07-10 16:34:04 +02:00
Benoît Burnichon
5d8e89363e
Some PHPCS
2015-07-10 16:32:39 +02:00
Mathieu Darse
929705f13e
Structure -> GlobalStructure + LimitedStructure
...
Rename Structure to GlobalStructure.
Add new LimitedStructure to wrap another Structure and transparently restrict
access on private fields.
2015-07-10 12:30:13 +02:00
Benoît Burnichon
de8657aabf
Restore previous behaviour of get_duration. PHPCS
2015-07-10 11:56:18 +02:00
Benoît Burnichon
4c1fcff4e6
Better checking TechnicalDataSet return type.
2015-07-10 11:56:17 +02:00
Benoît Burnichon
02cd830491
Fixup typo that leads to Fatal Error.
2015-07-10 11:56:17 +02:00
Benoît Burnichon
3b3f3f4011
Use TechnicalDataSet in record_adapter
2015-07-10 11:56:17 +02:00
Benoît Burnichon
8e6648c512
Add some classes to handle Technical Data
2015-07-10 11:56:17 +02:00
Benoît Burnichon
a425043b9a
Fix typo in Technical data const
2015-07-10 11:56:16 +02:00
Benoît Burnichon
3d16c624b4
Change some properties from protected to private
2015-07-10 11:56:16 +02:00
Benoît Burnichon
2e4d659045
Refactor record_adapter constructor
2015-07-10 11:56:16 +02:00
Benoît Burnichon
408e350b2e
PHPCS and add blackfire bash aliases
2015-07-10 11:56:16 +02:00
Benoît Burnichon
c9cd428acc
Use of old PDO singleton.
...
Also fixup test suite to check behaviour of set_mime (only setter)
2015-07-10 11:43:51 +02:00
Mathieu Darse
83999b425c
Fix private fields collections
2015-07-09 11:28:57 +02:00
Benoît Burnichon
dd73d6dae2
Renaming of Databox{,Field}Repository
2015-07-08 14:58:41 +02:00
Thibaud Fabre
e28b080c5a
Extract thumbnail manager classes from appbox
2015-07-08 13:46:17 +02:00
Aztech
c65fc6abec
Fix incorrect call to read/save version
2015-07-08 13:46:17 +02:00
Aztech
5aad5e933e
Extract repository classes to read/update box versions
2015-07-08 13:46:17 +02:00
Aztech
2a134d4bca
Fix incorrect argument
2015-07-08 13:45:24 +02:00
Aztech
35989c7c7c
Extract database maintenance service from base box + cleanup
2015-07-08 13:45:24 +02:00
Aztech
2605729137
Extract VO class for database connection settings
2015-07-08 13:45:24 +02:00
Benoît Burnichon
647f869b00
PHPCS
2015-07-08 11:30:15 +02:00
Benoît Burnichon
8ee5279d58
Remove all uses of databox_field::get_instance
2015-07-08 11:08:07 +02:00
Benoît Burnichon
82f19ee55d
Begin databox_field refactor
2015-07-08 11:08:07 +02:00
Benoît Burnichon
a3649aae88
Add Some TagMetadata to TagFactory
2015-07-08 11:08:06 +02:00
Mathieu Darse
aa0b40b679
Test TermNode
2015-07-03 20:01:29 +02:00
Mathieu Darse
6b88b7d17b
Tests & private fields support on QuotedTextNode
2015-07-03 20:01:20 +02:00
Mathieu Darse
92e56105bd
Generalize private fields query build
2015-07-03 18:58:35 +02:00
Benoît Burnichon
e30fc76603
PHPCS and use final classes to enforce composition
2015-07-03 18:20:10 +02:00
Benoît Burnichon
cc7a238e92
Remove an SQL statement in databox, along with cache Key
2015-07-03 18:20:09 +02:00
Benoît Burnichon
62ac0e0cbc
Use computed key from appbox.
2015-07-03 18:20:09 +02:00
Benoît Burnichon
26f8869f1e
Remove DataboxHydrator as now too tiny.
...
Add createMany to DataboxFactory.
2015-07-03 18:20:09 +02:00
Benoît Burnichon
c5239259d1
Refactor DataboxRepository
2015-07-03 18:20:09 +02:00
Benoît Burnichon
a22ef5fa27
Rename AccessRestriction::filterAvailableDataboxes
2015-07-03 18:20:09 +02:00
Benoît Burnichon
0eb9ec40d8
Add Tests to DataboxRepository
2015-07-03 18:20:09 +02:00
Benoît Burnichon
00f5f3369e
Add DataboxRepository
2015-07-03 18:20:09 +02:00
Mathieu Darse
386251b91c
Remove duplication & fix test class name
2015-07-03 17:40:56 +02:00
Mathieu Darse
393e4c62c1
Test thesaurus Concept
2015-07-03 16:57:33 +02:00
Mathieu Darse
570e4fea81
Test TextNode
...
Make buildConceptQueries() return early when no concepts are available (do not
call getFields() uselessly anymore).
2015-07-03 16:54:47 +02:00
Mathieu Darse
e4aafaac10
Restrict search on visible private fields
...
Search on private fields is only supported on bare text search right now (TextNode).
This also fix and issue on databox::get_collection_unique_ids() returning the
value from the first call over and over.
2015-07-03 14:33:48 +02:00
Benoît Burnichon
fbfb61269f
Merge pull request #1421 from mdarse/query-parser-code-style
...
Fix code style on latest query parser feature & add tests
2015-07-02 21:31:54 +02:00
Mathieu Darse
1d0257554b
Fix code style on latest query parser feature & add tests
2015-07-02 19:06:44 +02:00
Benoît Burnichon
c66248981c
Missing xmlhttp Service provider declaration.
2015-07-02 13:27:38 +02:00
Benoît Burnichon
6e52421437
Merge pull request #1390 from mdarse/private-fields-collection-map
...
Fields « used by » collection map
2015-07-02 12:55:45 +02:00
Benoît Burnichon
ff67120388
Fixup some tests that fails with Elasticsearch.
2015-07-02 12:33:19 +02:00
Benoît Burnichon
78187f7103
PHPCS fixup
2015-07-02 12:33:19 +02:00
Benoît Burnichon
1eb7271810
Remove unused phraseaIndexerPath.
2015-07-02 12:33:19 +02:00
Benoît Burnichon
f920e8354a
Replace phraseanet.appbox by getApplicationBox() method calls.
2015-07-02 12:33:19 +02:00