| @@ 206-218 (lines=13) @@ | ||
| 203 | /** |
|
| 204 | * @return Index[] |
|
| 205 | */ |
|
| 206 | public function getQueuedIndexes() { |
|
| 207 | $qb = $this->getIndexesSelectSql(); |
|
| 208 | $this->limitToQueuedIndexes($qb); |
|
| 209 | ||
| 210 | $indexes = []; |
|
| 211 | $cursor = $qb->execute(); |
|
| 212 | while ($data = $cursor->fetch()) { |
|
| 213 | $indexes[] = $this->parseIndexesSelectSql($data); |
|
| 214 | } |
|
| 215 | $cursor->closeCursor(); |
|
| 216 | ||
| 217 | return $indexes; |
|
| 218 | } |
|
| 219 | ||
| 220 | ||
| 221 | /** |
|
| @@ 228-240 (lines=13) @@ | ||
| 225 | * |
|
| 226 | * @return Index[] |
|
| 227 | */ |
|
| 228 | public function getIndexesFromProvider(IFullTextSearchProvider $provider) { |
|
| 229 | $qb = $this->getIndexesSelectSql(); |
|
| 230 | $this->limitToProviderId($qb, $provider->getId()); |
|
| 231 | ||
| 232 | $indexes = []; |
|
| 233 | $cursor = $qb->execute(); |
|
| 234 | while ($data = $cursor->fetch()) { |
|
| 235 | $indexes[] = $this->parseIndexesSelectSql($data); |
|
| 236 | } |
|
| 237 | $cursor->closeCursor(); |
|
| 238 | ||
| 239 | return $indexes; |
|
| 240 | } |
|
| 241 | ||
| 242 | ||
| 243 | } |
|