Prado\Data\ActiveRecord\Scaffold\TScaffoldSearch::createSearchCondition PHP Метод

createSearchCondition() защищенный Метод

protected createSearchCondition ( ) : string
Результат string the search criteria for the search terms in the search text box.
    protected function createSearchCondition()
    {
        $table = $this->getTableInfo();
        if (strlen($str = $this->getSearchText()->getText()) > 0) {
            $builder = $table->createCommandBuilder($this->getRecordFinder()->getDbConnection());
            return $builder->getSearchExpression($this->getFields(), $str);
        }
    }