aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/utils/ReferenceLinkDB.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2015-12-27 10:08:20 +0100
committerArthurHoaro <arthur@hoa.ro>2016-01-06 19:53:04 +0100
commit822bffced8212e7f34bcb2ad063b31a78bd57bdb (patch)
tree04cd1efe9d2f015669a451fc7c853c23e38a44cb /tests/utils/ReferenceLinkDB.php
parentba83317573a1477d731cbd3d974b601cf9afdba3 (diff)
downloadShaarli-822bffced8212e7f34bcb2ad063b31a78bd57bdb.tar.gz
Shaarli-822bffced8212e7f34bcb2ad063b31a78bd57bdb.tar.zst
Shaarli-822bffced8212e7f34bcb2ad063b31a78bd57bdb.zip
Link filter refactoring
* 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.
Diffstat (limited to 'tests/utils/ReferenceLinkDB.php')
-rw-r--r--tests/utils/ReferenceLinkDB.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/utils/ReferenceLinkDB.php b/tests/utils/ReferenceLinkDB.php
index 47b51829..011317ef 100644
--- a/tests/utils/ReferenceLinkDB.php
+++ b/tests/utils/ReferenceLinkDB.php
@@ -124,4 +124,9 @@ class ReferenceLinkDB
124 { 124 {
125 return $this->_privateCount; 125 return $this->_privateCount;
126 } 126 }
127
128 public function getLinks()
129 {
130 return $this->_links;
131 }
127} 132}