| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | public static function editQuery(SearchEvent $event) |
||
| 11 | { |
||
| 12 | $event->activeQuery->select('`id`') |
||
| 13 | ->from(Page::tableName()) |
||
| 14 | ->orWhere('`title` LIKE :q') |
||
| 15 | ->orWhere('`h1` LIKE :q') |
||
| 16 | ->orWhere('`content` LIKE :q') |
||
| 17 | ->addParams([':q' => '%' . $event->q . '%']) |
||
| 18 | ->andWhere('published=1') |
||
| 19 | ->andWhere('searchable=1'); |
||
| 20 | } |
||
| 21 | } |