Total Complexity | 6 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ArticleCommentController extends ActiveController |
||
8 | { |
||
9 | public $modelClass = ArticleComment::class; |
||
10 | |||
11 | public function behaviors() |
||
12 | { |
||
13 | $behaviors = parent::behaviors(); |
||
14 | |||
15 | $behaviors['authenticator']['optional'] = ['options', 'index']; |
||
16 | |||
17 | return $behaviors; |
||
18 | } |
||
19 | |||
20 | public function getQuery($action) |
||
29 | ]); |
||
30 | } |
||
31 | |||
32 | public function searchModel() |
||
33 | { |
||
34 | return (new DynamicModel(['article_id' => null])) |
||
35 | ->addRule(['article_id'], 'number'); |
||
36 | } |
||
37 | |||
38 | protected function applyFilter($query, $model, $filter) |
||
43 | } |
||
44 | } |
||
45 | } |
||
47 |