Fixes on modelform
This commit is contained in:
parent
7b7df55b3b
commit
19cd803a87
5 changed files with 23 additions and 8 deletions
|
|
@ -26,7 +26,7 @@ function select_a_field_method_class($class, $where, $field)
|
|||
|
||||
$query=$class->select($where, array($field), $raw_query=1);
|
||||
|
||||
while(list($field_choose)=webtsys_fetch_row($query))
|
||||
while(list($field_choose)=$class->fetch_row($query))
|
||||
{
|
||||
|
||||
$arr_field[]=$field_choose;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ function select_a_row_method_class($class, $idrow, $arr_select=array(), $raw_que
|
|||
|
||||
$query=$class->select('where '.$class->name.'.`'.$class->idmodel.'`=\''.$idrow.'\'', $arr_select, $raw_query);
|
||||
|
||||
return webtsys_fetch_array($query, $assoc);
|
||||
return $class->fetch_array($query, $assoc);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ function select_a_row_where_method_class($class, $where, $arr_select=array(), $r
|
|||
|
||||
$query=$class->select($where, $arr_select, $raw_query);
|
||||
|
||||
return webtsys_fetch_array($query, $assoc);
|
||||
return $class->fetch_array($query, $assoc);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ function select_to_array_method_class($class, $where="", $arr_select=array(), $r
|
|||
|
||||
$query=$class->select($where, $arr_select, $raw_query);
|
||||
|
||||
while($arr_row=webtsys_fetch_array($query))
|
||||
while($arr_row=$class->fetch_array($query))
|
||||
{
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue