]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
Refactor filter in LinkDB 515/head
authorArthurHoaro <arthur@hoa.ro>
Mon, 21 Mar 2016 20:40:49 +0000 (21:40 +0100)
committerArthurHoaro <arthur@hoa.ro>
Fri, 25 Mar 2016 18:17:59 +0000 (19:17 +0100)
commit528a6f8a232c060faf024008e4f8a09b4aa8dabc
tree86cac78b7f4d3998bedd923da83145c37ec88ff4
parentee88a4bcc29da721cf43b750663aebeac4969517
Refactor filter in LinkDB

  * 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
application/FeedBuilder.php
application/LinkDB.php
application/LinkFilter.php
application/Updater.php
index.php
tests/LinkDBTest.php
tests/LinkFilterTest.php
tests/Updater/UpdaterTest.php