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