Redaxscript\Controller\Search::_getLikeArray PHP Method

_getLikeArray() protected method

get the like array
Since: 3.0.0
protected _getLikeArray ( string $table = null, array $searchArray = [] ) : array
$table string name of the table
$searchArray array array of the search
return array
    protected function _getLikeArray($table = null, $searchArray = [])
    {
        return array_filter([$table === 'categories' || $table === 'articles' ? '%' . $searchArray['search'] . '%' : null, $table === 'categories' || $table === 'articles' ? '%' . $searchArray['search'] . '%' : null, $table === 'categories' || $table === 'articles' ? '%' . $searchArray['search'] . '%' : null, $table === 'articles' || $table === 'comments' ? '%' . $searchArray['search'] . '%' : null]);
    }