This commit is contained in:
Antonio de la Rosa 2015-05-12 02:46:03 +02:00
parent 99e0968b7b
commit 3dea8a32aa

View file

@ -993,7 +993,6 @@ class Webmodel {
/** /**
* A helper function for obtain the last insert id. * A helper function for obtain the last insert id.
* *
* @param mixed $query The last insert id.
*/ */
public function insert_id() public function insert_id()
@ -1005,6 +1004,19 @@ class Webmodel {
} }
/**
* 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 * A helper function for get fields names of the model from the array $components
* *