Skip to content
PHP Ecosystem
Explore

UserSearchInterface

API reference › Debug › models › search › UserSearchInterface

interfaceyii\debug\models\search\UserSearchInterface
Sourcesrc/models/search/UserSearchInterface.php
Implemented by 1 type

Contract for filter models backing the User Switch panel’s search form.

Implementations expose a single search() method that returns a DataProviderInterface over the candidate identities filtered by the submitted request parameters.

MethodDescriptionDefined by
search() abstractReturns a data provider over the identity records, filtered by the submitted search parameters.UserSearchInterface
abstract public function search(array<int|string, mixed> $params): yii\data\DataProviderInterface

Returns a data provider over the identity records, filtered by the submitted search parameters.

Parameters

ParameterTypeDescription
$paramsarray<int|string, mixed>Raw request parameters consumed by the implementing model.

Returns

yii\data\DataProviderInterface: Provider over the matching identity records.