/
v.bolshakov
/
AIEcosystem-Testing
Обзор
Документация
Войти
/
v.bolshakov
/
AIEcosystem-Testing
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
common/search/SubjectAreaSearch.php
46 строк
883 B
Developer
Initial commit
03 авг 2026, 17:43
03 авг 2026, 17:43
7433917
Код
Авторство
О чём код?
<?php namespace common\search; use common\search\base\BaseSearch; /** * SubjectAreaSearch represents the model behind the search form of `common\models\SubjectArea`. * * @author Dmitry E. Semenov <sde.tomsk@gmail.com> * @copyright Self (c) 2022 */ class SubjectAreaSearch extends BaseSearch { /** * @inheritdoc */ protected $modelClass = 'common\models\SubjectArea'; /** * @inheritdoc */ protected function getSortConfig() { return [ 'title' => [ 'asc' => ['title' => SORT_ASC], 'desc' => ['title' => SORT_DESC], ], ]; } /** * @inheritdoc */ public function beforeSearch($query) { $a = $query->alias; $query ->alias($a) ->currentUser() ->notDeleted(); return true; } }