From 55847ecb9836bed93f285b4dca435d6112480075 Mon Sep 17 00:00:00 2001 From: akulikov Date: Mon, 6 Apr 2009 09:37:23 +0000 Subject: [PATCH] user balance enchantment git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@69 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/Model.class.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/classes/Model.class.php b/classes/Model.class.php index 08a9583..14f4313 100644 --- a/classes/Model.class.php +++ b/classes/Model.class.php @@ -120,6 +120,21 @@ abstract class Model ORDER BY '.$this->primary_key.' '.($sort == 'ASC' ? 'ASC' : 'DESC') .($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