aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/LinkFilter.php
Commit message (Collapse)AuthorAgeFilesLines
* Refactor filter in LinkDBArthurHoaro2016-03-251-1/+13
| | | | | | | | * search type now carried by LinkDB in order to factorize code between different search sources. * LinkDB->filter split in 3 method: filterSearch, filterHash, filterDay (we know what type of filter is needed). * filterHash now throw a LinkNotFoundException if it doesn't exist: internal implementation choice, still displays a 404. * Smallhash regex has been rewritten. * Unit tests update
* Allow crossed search between terms and tagsArthurHoaro2016-02-281-4/+23
| | | | | | | * Partial fix of #449 * Current use case: search term + click on tag. * LinkFilter now returns all links if no filter is given. * Unit tests.
* Support text search across link fields.ArthurHoaro2016-02-151-25/+23
|
* Improved search: combine AND, exact terms and exclude search.ArthurHoaro2016-02-151-24/+36
|
* Add exclusion in tag searchArthurHoaro2016-02-151-8/+22
| | | | | | | | | | | * Searching '-mytag' will now exlude all shaares with 'mytag' tag. * All tags starting with a '-' are renamed without it (through the Updater). * Unit tests. Minor code changes: * LinkDB->filter() can now take no parameters (get all link depending on logged status). * tagsStrToArray() is now static and filters blank tags.
* Introduce the Updater class whichArthurHoaro2016-02-151-1/+0
| | | | | | | * contains methods designed to be run once. * is able to upgrade the datastore or the configuration. * is based on methods names, stored in a text file with ';' separator (updates.txt). * begins with existing function 'mergeDeprecatedConfigFile()' (options.php).
* Implemented searching for a phrase in double-quotes or all words in no ↵Florian Voigt2016-02-011-13/+32
| | | | | | particular order. + unit tests
* Link filter refactoringArthurHoaro2016-01-061-0/+259
* introduce class LinkFilter to handle link filter operation (and lighten LinkDB). * handle 'private only' in filtering. * update template to prefill search fields with current search terms. * coding style. * unit test (mostly move from LinkDB to LinkFilter). PS: preparation for #358 #315 and 'AND' search.