summaryrefslogtreecommitdiff
path: root/app/Models/Search.php
AgeCommit message (Collapse)Author
2015-04-22Split the search into valuesGravatar Alexis Degrugillier
Before, the search was a single value. Now it is splited in chuncks when separated by spaces. Except if they are enclosed by single quotes or double quotes. For some reasons, the unit tests are working for both single and double quotes but the search box isn't. It is working only with single quotes. We need to investigate the reason of this behavior. See #823
2015-02-21Add a default string representationGravatar Alexis Degrugillier
In some part of the code, the search is displayed as is and crash since there is no way to display the search object as a string.
2015-02-21Add search default raw valueGravatar Alexis Degrugillier
Before, the default value was undefined. Now it always has a value even when no value is provided.
2015-02-21Add required libraryGravatar Alexis Degrugillier
The lib_date.php library was missing in the Search object file. It is required to make date conversion in that object.
2015-02-12Refactor the code to make less unnecessaty callsGravatar Alexis Degrugillier
There were multiple calls made to the cleaning method that were unnecessary since it is useful only on the last call. It allows to simplify code by returning values ealier.
2015-02-11Remove code generated by netbeansGravatar Alexis Degrugillier
2015-02-11Extract the search code from the contextGravatar Alexis Degrugillier
I figured that the code for the search could be extracted from the context to have separation of concern. It supports multiple keywords. It suports also multiple tag keywords.