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, '\\%', '\\_'
],
$str );
} /**
* Generates the SQL for listing tables in a platform-dependent manner.
* Uses escapeLikeStringDirect().
*
* @param string|null $tableName If $tableName is provided will return only this table if exists.
*/