Trait lajax\translatemanager\models\searches\SearchTrait

Implemented bylajax\translatemanager\models\searches\LanguageSearch, lajax\translatemanager\models\searches\LanguageSourceSearch
Available since version1.5.2

Model search helper trait. Helps with common search tasks.

It must be used in a \yii\db\ActiveRecord context.

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
createLikeExpression() Creates a LIKE expression, which can be used in the Query builder. lajax\translatemanager\models\searches\SearchTrait

Method Details

createLikeExpression() protected method

Creates a LIKE expression, which can be used in the Query builder.

See also http://www.yiiframework.com/doc-2.0/yii-db-query.html#where()-detail.

protected array createLikeExpression ( $operand1, $operand2 )
$operand1 mixed

Should be a column or DB expression.

$operand2 mixed

Should be a string or an array representing the values that the column or DB expression should be like.