| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class livesearch extends base |
||
| 17 | { |
||
| 18 | /** @var array */ |
||
| 19 | protected $sql; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Do a live search on idea titles. Return any matches based on a given search query. |
||
| 23 | * |
||
| 24 | * @param string $search The string of characters to search using LIKE |
||
| 25 | * @param int $limit The number of results to return |
||
| 26 | * |
||
| 27 | * @return array An array of matching idea id/key and title/values |
||
| 28 | */ |
||
| 29 | public function title_search($search, $limit = 10) |
||
| 50 |