From 3dea8a32aa538d2628c4c72837fe5a57a9c02bc0 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Tue, 12 May 2015 02:46:03 +0200 Subject: [PATCH] Fixes --- src/Webmodel.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Webmodel.php b/src/Webmodel.php index 0a2553c..aba02e0 100644 --- a/src/Webmodel.php +++ b/src/Webmodel.php @@ -993,7 +993,6 @@ class Webmodel { /** * A helper function for obtain the last insert id. * - * @param mixed $query The last insert id. */ public function insert_id() @@ -1004,6 +1003,19 @@ class Webmodel { return MySQLClass::webtsys_insert_id(); } + + /** + * A helper function for escape query strings + * + * @param string $value The query string to escape. + */ + + static public function escape_string($value) + { + + return MySQLClass::webtsys_escape_string($value); + + } /** * A helper function for get fields names of the model from the array $components