stable
Clone or download
part of story #24197 search for Documents with criteria No functional changes: You should still be able to use docman legacy advanced search Why this change: In order to have REST route folder/id/search I'll need to build a Docman_Report (as explained in AC, I will build and object arround DocmanItem_DAO::searchId in order to don't break the existing code) Docman_Reports come with two notions: - $filters (Docman_Filter) who will select properties on wich we search - $columns (Docman_ReportColumn) who will display the column we want to display in report results Extracting this behaviour in a dedicated object will enable me to reuse it and having it in a small object should prevent me to introduce breaking change in legacy UI Change-Id: Ie2c8e2f76e445eb60e999fa284837ae819e20be6
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/include/Docman_ReportFactory.class.php | +6 | −10 | Go to diff View file |
A | plugins/docman/include/Search/AlwaysThereColumnRetriever.php | +44 | −0 | Go to diff View file |
A | plugins/docman/tests/unit/Search/AlwaysThereColumnRetrieverTest.php | +58 | −0 | Go to diff View file |