public function escapeLikeStringDirect($str) { if (is_array($str)) { foreach ($str as $key =>
$val) { $str[$key] =
$this->
escapeLikeStringDirect($val);
} return $str;
} $str =
$this->
_escapeString($str);
// Escape LIKE condition wildcards
return str_replace( [$this->likeEscapeChar, '%', '_'
],
['\\' .
$this->likeEscapeChar, '\\%', '\\_'
],