user balance enchantment
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@69 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -120,6 +120,21 @@ abstract class Model
|
|||||||
ORDER BY '.$this->primary_key.' '.($sort == 'ASC' ? 'ASC' : 'DESC')
|
ORDER BY '.$this->primary_key.' '.($sort == 'ASC' ? 'ASC' : 'DESC')
|
||||||
.($limit !== false ? ' LIMIT '.(int) $limit : ''))->fetchAll();
|
.($limit !== false ? ' LIMIT '.(int) $limit : ''))->fetchAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setAutocommit($set)
|
||||||
|
{
|
||||||
|
return mysqli_autocommit($this->handler, (bool) $set);
|
||||||
|
}
|
||||||
|
|
||||||
|
function commit()
|
||||||
|
{
|
||||||
|
return mysqli_commit($this->handler);
|
||||||
|
}
|
||||||
|
|
||||||
|
function rollback()
|
||||||
|
{
|
||||||
|
return mysqli_rollback($this->handler);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ModelResult
|
class ModelResult
|
||||||
|
Reference in New Issue
Block a user