| 1 | <?php |
||
| 13 | class AssignmentSearch extends Model |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string user id |
||
| 17 | */ |
||
| 18 | public $id; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string username |
||
| 22 | */ |
||
| 23 | public $username; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var int the default page size |
||
| 27 | */ |
||
| 28 | public $pageSize = 25; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc |
||
| 32 | */ |
||
| 33 | public function rules(): array |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Creates data provider instance with search query applied |
||
| 42 | * |
||
| 43 | * @param array $params |
||
| 44 | * @param \yii\db\ActiveRecord $class |
||
| 45 | * @param $idField |
||
| 46 | * @param string $usernameField |
||
| 47 | * |
||
| 48 | * @return ActiveDataProvider |
||
| 49 | */ |
||
| 50 | public function search(array $params, $class, string $idField, string $usernameField): ActiveDataProvider |
||
| 72 | } |
||
| 73 |