Fixes in fields and mysqlclass

This commit is contained in:
Antonio de la Rosa 2016-07-05 02:31:31 +02:00
parent ecbaec5bbb
commit c3ccbb16e0
4 changed files with 29 additions and 6 deletions

View file

@ -703,6 +703,13 @@ class Webmodel {
$args=$conditions[1];
if(gettype($args)!=='array')
{
throw new \Exception('Error: you need an array how second parameter');
}
}
else
{
@ -1486,6 +1493,18 @@ class Webmodel {
return $this->$func($query);
}
/**
* A helper method used for get number of affected rows of a last sql operation
*
*/
public function affected_rows()
{
return SQLClass::webtsys_affected_rows($this->db_selected);
}
/**
* A helper function for obtain an array from a result of $this->select