From cf05f6325b329b473e69640da35517b4fe7fe4be Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sat, 27 Jul 2013 16:52:58 +0300 Subject: [PATCH] add escapePattern method --- ipf/orm/connection.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ipf/orm/connection.php b/ipf/orm/connection.php index 6e1fe6a..5f7fc93 100644 --- a/ipf/orm/connection.php +++ b/ipf/orm/connection.php @@ -403,6 +403,16 @@ abstract class IPF_ORM_Connection extends IPF_ORM_Configurable implements Counta } } + public function escapePattern($text) + { + $q = $this->string_quoting['escape_pattern']; + $text = str_replace($q, $q . $q, $text); + foreach ($this->wildcards as $wildcard) { + $text = str_replace($wildcard, $q . $wildcard, $text); + } + return $text; + } + public function setDateFormat($format = null) { } -- 2.49.0