|
@@ -92,6 +92,15 @@ class ElementSearcher extends Searcher implements SearcherInterface
|
92
|
92
|
protected $ids_display;
|
93
|
93
|
|
94
|
94
|
/**
|
|
95
|
+ * Ce booléen permet de savoir si la recherche de tag est stricte.
|
|
96
|
+ * Si elle est stricte chaque tag choisis devrons être attaché au partage
|
|
97
|
+ * pour qu'il soit pris en compte.
|
|
98
|
+ *
|
|
99
|
+ * @var type boolean
|
|
100
|
+ */
|
|
101
|
+ protected $tag_strict = false;
|
|
102
|
+
|
|
103
|
+ /**
|
95
|
104
|
* @see SearcherInterface
|
96
|
105
|
* @param array $params
|
97
|
106
|
*/
|
|
@@ -104,7 +113,9 @@ class ElementSearcher extends Searcher implements SearcherInterface
|
104
|
113
|
|
105
|
114
|
// Mise a jour des attributs
|
106
|
115
|
$this->setAttributes(array(
|
107
|
|
- 'network', 'tags', 'count', 'user_id', 'group_id', 'favorite', 'id_limit', 'searchnew', 'ids', 'ids_display'
|
|
116
|
+ 'network', 'tags', 'count', 'user_id', 'group_id',
|
|
117
|
+ 'favorite', 'id_limit', 'searchnew', 'ids', 'ids_display',
|
|
118
|
+ 'tag_strict'
|
108
|
119
|
), $params);
|
109
|
120
|
|
110
|
121
|
}
|
|
@@ -117,7 +128,9 @@ class ElementSearcher extends Searcher implements SearcherInterface
|
117
|
128
|
{
|
118
|
129
|
// Mise a jour des attributs
|
119
|
130
|
$this->setAttributes(array(
|
120
|
|
- 'network', 'tags', 'count', 'user_id', 'group_id', 'favorite', 'id_limit', 'searchnew', 'ids', 'ids_display'
|
|
131
|
+ 'network', 'tags', 'count', 'user_id', 'group_id',
|
|
132
|
+ 'favorite', 'id_limit', 'searchnew', 'ids', 'ids_display',
|
|
133
|
+ 'tag_strict'
|
121
|
134
|
), $params);
|
122
|
135
|
}
|
123
|
136
|
|
|
@@ -136,7 +149,8 @@ class ElementSearcher extends Searcher implements SearcherInterface
|
136
|
149
|
'group_id' => $this->getGroupId(),
|
137
|
150
|
'favorite' => $this->isFavorite(),
|
138
|
151
|
'ids' => $this->getIds(),
|
139
|
|
- 'ids_display' => $this->getIdsDisplay()
|
|
152
|
+ 'ids_display' => $this->getIdsDisplay(),
|
|
153
|
+ 'tag_strict' => $this->getTagStrict()
|
140
|
154
|
);
|
141
|
155
|
}
|
142
|
156
|
|
|
@@ -231,6 +245,16 @@ class ElementSearcher extends Searcher implements SearcherInterface
|
231
|
245
|
{
|
232
|
246
|
return $this->ids_display;
|
233
|
247
|
}
|
|
248
|
+
|
|
249
|
+ public function setTagStrict($strict)
|
|
250
|
+ {
|
|
251
|
+ $this->tag_strict = $strict;
|
|
252
|
+ }
|
|
253
|
+
|
|
254
|
+ public function getTagStrict()
|
|
255
|
+ {
|
|
256
|
+ return $this->tag_strict;
|
|
257
|
+ }
|
234
|
258
|
|
235
|
259
|
/**
|
236
|
260
|
* Construction de l'objet Query
|